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

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