diff --git a/docker/endlessh/docker-compose.yml b/docker/endlessh/docker-compose.yml index 408f15f0..4aa7e776 100644 --- a/docker/endlessh/docker-compose.yml +++ b/docker/endlessh/docker-compose.yml @@ -10,8 +10,8 @@ services: build: . container_name: endlessh restart: always - cpu_count: 1 - cpus: 0.25 +# cpu_count: 1 +# cpus: 0.25 networks: - endlessh_local ports: diff --git a/docker/ews/Dockerfile b/docker/ews/Dockerfile index b4674c6c..5994bd09 100644 --- a/docker/ews/Dockerfile +++ b/docker/ews/Dockerfile @@ -17,11 +17,12 @@ RUN apk -U --no-cache add \ py3-ipaddress \ py3-lxml \ py3-mysqlclient \ + py3-openssl \ py3-requests \ py3-pip \ py3-setuptools && \ pip3 install --upgrade pip && \ - pip3 install --no-cache-dir configparser hpfeeds3 influxdb influxdb-client pyOpenSSL xmljson && \ + pip3 install --no-cache-dir configparser hpfeeds3 influxdb influxdb-client xmljson && \ # # Setup ewsposter git clone https://github.com/telekom-security/ewsposter /opt/ewsposter && \ diff --git a/docker/ews/docker-compose.yml b/docker/ews/docker-compose.yml index f3fcd3d2..e76c5b39 100644 --- a/docker/ews/docker-compose.yml +++ b/docker/ews/docker-compose.yml @@ -10,8 +10,8 @@ services: build: . container_name: ewsposter restart: always - cpu_count: 1 - cpus: 0.75 +# cpu_count: 1 +# cpus: 0.75 networks: - ewsposter_local environment: diff --git a/docker/fatt/docker-compose.yml b/docker/fatt/docker-compose.yml index 89be48ed..5ee9e0e5 100644 --- a/docker/fatt/docker-compose.yml +++ b/docker/fatt/docker-compose.yml @@ -7,8 +7,8 @@ services: build: . container_name: fatt restart: always - cpu_count: 1 - cpus: 0.75 +# cpu_count: 1 +# cpus: 0.75 network_mode: "host" cap_add: - NET_ADMIN diff --git a/docker/glutton/docker-compose.yml b/docker/glutton/docker-compose.yml index cc313fd2..d5e328f5 100644 --- a/docker/glutton/docker-compose.yml +++ b/docker/glutton/docker-compose.yml @@ -10,8 +10,8 @@ services: tmpfs: - /var/lib/glutton:uid=2000,gid=2000 - /run:uid=2000,gid=2000 - cpu_count: 1 - cpus: 0.75 +# cpu_count: 1 +# cpus: 0.75 network_mode: "host" cap_add: - NET_ADMIN diff --git a/docker/hellpot/docker-compose.yml b/docker/hellpot/docker-compose.yml index d336c9e0..9e085631 100644 --- a/docker/hellpot/docker-compose.yml +++ b/docker/hellpot/docker-compose.yml @@ -10,8 +10,8 @@ services: build: . container_name: hellpot restart: always - cpu_count: 1 - cpus: 0.25 +# cpu_count: 1 +# cpus: 0.25 networks: - hellpot_local ports: diff --git a/docker/heralding/Dockerfile b/docker/heralding/Dockerfile index 7590c527..1450159a 100644 --- a/docker/heralding/Dockerfile +++ b/docker/heralding/Dockerfile @@ -12,7 +12,18 @@ RUN apk -U --no-cache add \ openssl-dev \ py3-pyzmq \ postgresql-dev \ + py3-attrs \ + py3-mysqlclient \ + py3-nose \ + py3-openssl \ py3-pip \ + py3-psycopg2 \ + py3-pycryptodome \ + py3-pyzmq \ + py3-requests \ + py3-rsa \ + py3-typing-extensions \ + py3-yaml \ python3 \ python3-dev && \ # @@ -22,6 +33,7 @@ RUN apk -U --no-cache add \ git clone https://github.com/johnnykv/heralding && \ cd heralding && \ git checkout c31f99c55c7318c09272d8d9998e560c3d4de9aa && \ + cp /root/dist/requirements.txt . && \ pip3 install --upgrade pip && \ pip3 install --no-cache-dir -r requirements.txt && \ pip3 install --no-cache-dir . && \ diff --git a/docker/heralding/dist/requirements.txt b/docker/heralding/dist/requirements.txt new file mode 100644 index 00000000..21336f71 --- /dev/null +++ b/docker/heralding/dist/requirements.txt @@ -0,0 +1,4 @@ +aiosmtpd +asyncssh>=2.0.0 +pyaml +hpfeeds3 diff --git a/docker/heralding/docker-compose.yml b/docker/heralding/docker-compose.yml index be1bd639..957ec743 100644 --- a/docker/heralding/docker-compose.yml +++ b/docker/heralding/docker-compose.yml @@ -12,8 +12,8 @@ services: restart: always tmpfs: - /tmp/heralding:uid=2000,gid=2000 - cpu_count: 1 - cpus: 0.25 +# cpu_count: 1 +# cpus: 0.25 networks: - heralding_local ports: diff --git a/docker/honeypots/Dockerfile b/docker/honeypots/Dockerfile index 32da0814..6eea4b9c 100644 --- a/docker/honeypots/Dockerfile +++ b/docker/honeypots/Dockerfile @@ -19,7 +19,31 @@ RUN apk -U --no-cache add \ openssl \ openssl-dev \ postgresql-dev \ + py3-chardet \ + py3-click \ + py3-cryptography \ + py3-dnspython \ + py3-flask \ + py3-future \ + py3-hiredis \ + py3-impacket \ + py3-itsdangerous \ + py3-jinja2 \ + py3-ldap3 \ + py3-markupsafe \ + py3-netifaces \ + py3-openssl \ + py3-packaging \ + py3-paramiko \ py3-pip \ + py3-psutil \ + py3-psycopg2 \ + py3-pycryptodomex \ + py3-requests \ + py3-service_identity \ + py3-twisted \ + py3-werkzeug \ + py3-wheel \ python3 \ python3-dev \ zlib-dev && \ @@ -31,8 +55,8 @@ RUN apk -U --no-cache add \ git clone https://github.com/qeeqbox/honeypots && \ cd honeypots && \ git checkout bee3147cf81837ba7639f1e27fe34d717ecccf29 && \ + cp /root/dist/setup.py . && \ pip3 install --upgrade pip && \ - pip3 install --ignore-installed hiredis packaging && \ pip3 install . && \ setcap cap_net_bind_service=+ep /usr/bin/python3.9 && \ # diff --git a/docker/honeypots/dist/setup.py b/docker/honeypots/dist/setup.py new file mode 100644 index 00000000..d63ab76b --- /dev/null +++ b/docker/honeypots/dist/setup.py @@ -0,0 +1,39 @@ +from setuptools import setup + +with open("README.rst", "r") as f: + long_description = f.read() + +setup( + name='honeypots', + author='QeeqBox', + author_email='gigaqeeq@gmail.com', + description=r"23 different honeypots in a single pypi package! (dns, ftp, httpproxy, http, https, imap, mysql, pop3, postgres, redis, smb, smtp, socks5, ssh, telnet, vnc, mssql, elastic, ldap, ntp, memcache, snmp, oracle, sip and irc) ", + long_description=long_description, + version='0.51', + license="AGPL-3.0", + license_files=('LICENSE'), + url="https://github.com/qeeqbox/honeypots", + packages=['honeypots'], + entry_points={ + "console_scripts": [ + 'honeypots=honeypots.__main__:main_logic' + ] + }, + include_package_data=True, + install_requires=[ + 'pycrypto', + 'scapy', + 'twisted', + 'psutil', + 'psycopg2-binary', + 'requests', + 'impacket', + 'paramiko', + 'service_identity', + 'netifaces' + ], + extras_require={ + 'test': ['redis', 'mysql-connector', 'elasticsearch', 'pymssql', 'ldap3', 'pysnmp'] + }, + python_requires='>=3.5' +) diff --git a/docker/honeypots/docker-compose.yml b/docker/honeypots/docker-compose.yml index efe21fd1..f6ff54e8 100644 --- a/docker/honeypots/docker-compose.yml +++ b/docker/honeypots/docker-compose.yml @@ -14,8 +14,8 @@ services: restart: always tmpfs: - /tmp:uid=2000,gid=2000 - cpu_count: 1 - cpus: 0.75 +# cpu_count: 1 +# cpus: 0.75 networks: - honeypots_local ports: