Skip to content

Instantly share code, notes, and snippets.

View Strazzom's full-sized avatar

Strazzom

  • United Kingdom
View GitHub Profile
[+] Workdir: /home/user/pupy [UID= GID=1000]
WARNING: The UID variable is not set. Defaulting to a blank string.
Starting pupy ... done
2018-10-03 08:19:43,044| Credential "CLIENT_DNSCNC_PUB_KEY" is missing and will be generated
2018-10-03 08:19:43,045| Credential "CONTROL_SSL_CLIENT_KEY" is missing and will be generated
2018-10-03 08:19:43,045| Credential "CONTROL_SSL_BIND_KEY" is missing and will be generated
2018-10-03 08:19:43,045| Credential "CLIENT_DNSCNC_PUB_KEY_V2" is missing and will be generated
2018-10-03 08:19:43,045| Credential "CONTROL_SSL_CLIENT_CERT" is missing and will be generated
2018-10-03 08:19:43,046| Credential "CONTROL_DNSCNC_PRIV_KEY" is missing and will be generated
2018-10-03 08:19:43,046| Credential "CLIENT_ECPV_RC4_PUBLIC_KEY" is missing and will be generated
root@4e94e19442d0:/opt/pupy# ./pupysh.py
2018-09-24 05:38:58,749| Transport ec4 disabled: cannot import name byte_string
Traceback (most recent call last):
File "/opt/pupy/network/lib/__init__.py", line 44, in <module>
from .transports.ec4 import EC4TransportServer, EC4TransportClient
File "/opt/pupy/network/lib/transports/ec4.py", line 8, in <module>
from ...lib.picocmd.ecpv import ECPV
File "/opt/pupy/network/lib/picocmd/__init__.py", line 38, in <module>
from .client import (
File "/opt/pupy/network/lib/picocmd/client.py", line 31, in <module>
root@c827a7fa36a2:/opt/pupy# ./pupysh.py --loglevel DEBUG
2018-09-22 22:22:19,888| LIBS_AUTHORIZED_PATHS=['/opt/pupy/library_patches', '/opt/pupy', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/opt/pupy/external/pykcp', '/usr/lib/python2.7/dist-packages', '/opt/pupy/packages/all', '/opt/pupy/packages', 'packages']
2018-09-22 22:22:23,359| Transports loading from files
2018-09-22 22:22:23,371| Transport loaded: ec4
2018-09-22 22:22:23,401| Transport loaded: ecm
2018-09-22 22:22:23,405| Transport loaded: http
2018-09-22 22:22:23,407| Transport loaded: kc4
2018-09-22 22:22:23,413| Transport loaded: obfs3
2018-09-22 22:22:23,418| Transport loaded: rsa
2018-09-22 22:22:23,440| Transport loaded: scramblesuit
>> connect --host 127.0.0.1:8080
ERROR:root:[Errno 111] Connection refused
Traceback (most recent call last):
File "/opt/pupy/pupy/network/lib/launchers/connect.py", line 84, in iterate
s=client.connect(self.rhost, self.rport)
File "/opt/pupy/pupy/network/lib/clients.py", line 137, in connect
socket = super(PupySSLClient, self).connect(host, port)
File "/opt/pupy/pupy/network/lib/clients.py", line 50, in connect
s.connect(sockaddr)
File "/usr/lib/python2.7/socket.py", line 228, in meth
root@edf6ac62919d:/opt/pupy/pupy# ./pupygen.py -h
No handlers could be found for logger "pupy.network.pss"
Traceback (most recent call last):
File "./pupygen.py", line 14, in <module>
from pupylib.utils.network import get_listener_ip, get_listener_port
File "/opt/pupy/pupy/pupylib/__init__.py", line 19, in <module>
from PupyCmd import *
File "/opt/pupy/pupy/pupylib/PupyCmd.py", line 36, in <module>
from network.lib.base_launcher import LauncherError
File "/opt/pupy/pupy/network/lib/base_launcher.py", line 15, in <module>
Installing collected packages: KCP
Running setup.py install for KCP: started
Running setup.py install for KCP: finished with status 'error'
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-nCZu_6/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-4VLCUE/install-record.txt --single-version-externally-managed --compile:
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-nCZu_6/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-4VLCUE/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-req-build-nCZu_6/
running install
running build
running build_ext
building 'kcp' extension
creating build
Installing collected packages: plumbum, rpyc, pycryptodome, future, pefile, pyyaml, pyasn1, rsa, netaddr, ecdsa, six, pycparser, cffi, enum34, idna, asn1crypto, ipaddress, cryptography, paramiko, tinyec, psutil, netifaces, pylzma, colorama, mss, pyOpenSSL, scapy, ldap3, pycrypto, click, Werkzeug, itsdangerous, MarkupSafe, Jinja2, flask, dnspython, ldapdomaindump, impacket, pyuv, dnslib, http-parser, cerberus, logutils, secretstorage, pygments, urllib3, chardet, certifi, requests, singledispatch, futures, backports-abc, tornado, keyboard, poster, win-inet-pton, scandir, msgpack, hexdump, typing, M2Crypto, fusepy, KCP
Running setup.py develop for KCP
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/home/user/pupy/pupy/external/pykcp/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps --user --prefix=:
----------------------------------------
Segmentation
Without libssl-dev:
================
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -I/tmp/pip-build-e9BBp4/M2Crypto/SWIG -c SWIG/_m2crypto_wrap.c -o build/temp.linux-x86_64-2.7/SWIG/_m2crypto_wrap.o -Wno-deprecated-declarations -DTHREADING
SWIG/_m2crypto_wrap.c:3557:25: fatal error: openssl/err.h: No such file or directory
#include <openssl/err.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
user@pupy-testbded:~/pupy/pupy$ pip install -r requirements.txt
Obtaining file:///home/user/pupy/pupy/external/pykcp (from -r requirements.txt (line 35))
Collecting rpyc==3.4.4 (from -r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/77/cc/f948fdfb1ec2a04b349ac0d8ef08d944c6addb7b1abf6f2f9866eb34c1df/rpyc-3.4.4-py2-none-any.whl
Collecting pycryptodome (from -r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/85/f9/006a05b471e393a771d2f438eb72f574f65300ed60b35611932e56075b37/pycryptodome-3.6.3-cp27-cp27mu-manylinux1_x86_64.whl
Collecting pefile (from -r requirements.txt (line 3))
Collecting pyyaml (from -r requirements.txt (line 4))
Collecting rsa (from -r requirements.txt (line 5))
Using cached https://files.pythonhosted.org/packages/e1/ae/baedc9cb175552e95f3395c43055a6a5e125ae4d48a1d7a924baca83e92e/rsa-3.4.2-py2.py3-none-any.whl
root@02623f275421:/opt/pupy# python pupysh.py
No handlers could be found for logger "pupy.network"
ERROR:root:cannot import name byte_string: DNSCncLauncher disabled
Traceback (most recent call last):
File "/opt/pupy/network/conf.py", line 20, in <module>
from .lib.launchers.dnscnc import DNSCncLauncher
File "/opt/pupy/network/lib/launchers/dnscnc.py", line 7, in <module>
from ..picocmd.client import DnsCommandsClient
File "/opt/pupy/network/lib/picocmd/__init__.py", line 2, in <module>
from .client import *