{"action":"created","issue":{"url":"https://api.github.com/repos/n1nj4sec/pupy/issues/358","repository_url":"https://api.github.com/repos/n1nj4sec/pupy","labels_url":"https://api.github.com/repos/n1nj4sec/pupy/issues/358/labels{/name}","comments_url":"https://api.github.com/repos/n1nj4sec/pupy/issues/358/comments","events_url":"https://api.github.com/repos/n1nj4sec/pupy/issues/358/events","html_url":"https://github.com/n1nj4sec/pupy/issues/358","id":223343836,"number":358,"title":"Something went wrong since last commit","user":{"login":"AlessandroZ","id":10668373,"avatar_url":"https://avatars1.githubusercontent.com/u/10668373?v=3","gravatar_id":"","url":"https://api.github.com/users/AlessandroZ","html_url":"https://github.com/AlessandroZ","followers_url":"https://api.github.com/users/AlessandroZ/followers","following_url":"https://api.github.com/users/AlessandroZ/following{/other_user}","gists_url":"https://api.github.com/users/AlessandroZ/gists{/gist_id}","starred_url":"https://api.github.com/users/AlessandroZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlessandroZ/subscriptions","organizations_url":"https://api.github.com/users/AlessandroZ/orgs","repos_url":"https://api.github.com/users/AlessandroZ/repos","events_url":"https://api.github.com/users/AlessandroZ/events{/privacy}","received_events_url":"https://api.github.com/users/AlessandroZ/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-04-21T10:27:41Z","updated_at":"2017-04-21T15:51:27Z","closed_at":"2017-04-21T14:00:35Z","body":"I have sync my fork to the last commit and downloaded new binaries. However, I do not manage to get a reverse shell (I have tested it on Linux and Windows). \r\n\r\nWhen I generate a linux binary, the binary is created but I have two lines in red (Required credentials and the line with \"SSL_BIND_CERT, SSL_CA_CERT\"). And no connection is made when I launch the binary: \r\n```\r\n./pupygen.py -f client -A x64 -O linux connect --host 192.168.142.163:1234\r\n[+] Generate client: linux/x64\r\n[C] launcher: connect\r\n[C] launcher_args: ['--host', '192.168.142.163:1234']\r\n[C] offline_script: \r\n[+] Required credentials:\r\n[+] SSL_BIND_CERT, SSL_CA_CERT, SSL_CLIENT_CERT, SSL_BIND_KEY, SSL_CLIENT_KEY\r\n[+] OUTPUT_PATH = /tmp/pupyx64.mIsHAJ.lin\r\n[+] SCRIPTLETS = []\r\n[+] DEBUG = False\r\n```\r\n\r\nMoreover, when I generate a python payload, I have some errors: \r\n```\r\nsudo ./pupygen.py -f py connect --host 192.168.142.163:1234\r\nWARNING:root:Error with GnomeKeyring get_pass : Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.\r\n[I] use_gnome_keyring is true, the password will be stored in the Gnome-Keyring\r\n[I] Credentials password: \r\nWARNING:root:Error with GnomeKeyring store_pass : Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.\r\nERROR:root:bad decrypt pad (123)\r\nTraceback (most recent call last):\r\n  File \"./pupygen.py\", line 545, in <module>\r\n    pupygen(parser.parse_args(), config)\r\n  File \"./pupygen.py\", line 483, in pupygen\r\n    packed_payload=pack_py_payload(get_raw_conf(conf))\r\n  File \"./pupygen.py\", line 73, in get_raw_conf\r\n    credentials = Credentials(role='client')\r\n  File \"/tmp/pupy/pupy/pupylib/PupyCredentials.py\", line 206, in __init__\r\n    encryptor.decrypt(StringIO(content), fcontent)\r\n  File \"/tmp/pupy/pupy/pupylib/PupyCredentials.py\", line 162, in decrypt\r\n    raise ValueError(\"bad decrypt pad (%d)\" % padding_length)\r\nValueError: bad decrypt pad (123)\r\nbad decrypt pad (123)\r\n```\r\nI have tested to clone the project from @alxchk (and binaries too) and same problem with the connection (I didn't manage to get a reverse shell working).\r\nI could generate the python payload without errors this time but it didn't work. \r\n\r\nI don't understand as well, what is stored on the gnome keyring. I saw that a credentials password is required (at least on the @alxchk fork) but I didn't manage to reset it. \r\n\r\nSo I don't know if something has been broken or if it's my pupy installation. "},"comment":{"url":"https://api.github.com/repos/n1nj4sec/pupy/issues/comments/296228950","html_url":"https://github.com/n1nj4sec/pupy/issues/358#issuecomment-296228950","issue_url":"https://api.github.com/repos/n1nj4sec/pupy/issues/358","id":296228950,"user":{"login":"n1nj4sec","id":12549318,"avatar_url":"https://avatars3.githubusercontent.com/u/12549318?v=3","gravatar_id":"","url":"https://api.github.com/users/n1nj4sec","html_url":"https://github.com/n1nj4sec","followers_url":"https://api.github.com/users/n1nj4sec/followers","following_url":"https://api.github.com/users/n1nj4sec/following{/other_user}","gists_url":"https://api.github.com/users/n1nj4sec/gists{/gist_id}","starred_url":"https://api.github.com/users/n1nj4sec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n1nj4sec/subscriptions","organizations_url":"https://api.github.com/users/n1nj4sec/orgs","repos_url":"https://api.github.com/users/n1nj4sec/repos","events_url":"https://api.github.com/users/n1nj4sec/events{/privacy}","received_events_url":"https://api.github.com/users/n1nj4sec/received_events","type":"User","site_admin":false},"created_at":"2017-04-21T15:51:27Z","updated_at":"2017-04-21T15:51:27Z","body":"yup, agreed"}}
{"actor":{"display_login":"n1nj4sec"}}