heralding, honeypots reduce build time, tweaking

This commit is contained in:
t3chn0m4g3 2022-03-12 17:59:31 +00:00
parent a0d82ddc45
commit e87a6fa53f
12 changed files with 96 additions and 16 deletions

View file

@ -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:

View file

@ -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 && \

View file

@ -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:

View file

@ -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

View file

@ -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

View file

@ -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:

View file

@ -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 . && \

View file

@ -0,0 +1,4 @@
aiosmtpd
asyncssh>=2.0.0
pyaml
hpfeeds3

View file

@ -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:

View file

@ -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 && \
#

39
docker/honeypots/dist/setup.py vendored Normal file
View file

@ -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'
)

View file

@ -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: