mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-05-03 13:48:54 +00:00

updating .env, env.example and compose files regarding sentrypeer ENVs make glutton image aware of payloads feature bump glutton to latest master, alpine 3.19, multi-stage build bump ipphoney to alpine 3.19 bump mailoney to alpine 3.19, adjust for py3 revert medpot to previous master, use multi stage build and alpine 3.19 bump cyberchef to latest master bump ngninx to alpine 3.19 bump p0f to alpine 3.19, use multi stage build bump redishoneypot to alpine 3.19, use multi stage build bump sentrypeer to latest master, fix bug for open ports in compose files, now all tcp/5060, udp/5060 traffic will be seen bump spiderfoot to latest master bump spiderfoot to alpine 3.19 bump suricata to 7.0.2, fix performance issue with capture-filter-bpf by reducing the rules update clean.sh to include glutton payloads folder
93 lines
2.2 KiB
Docker
93 lines
2.2 KiB
Docker
FROM alpine:3.19
|
|
#
|
|
# Include dist
|
|
COPY dist/ /root/dist/
|
|
#
|
|
# Get and install dependencies & packages
|
|
RUN apk -U --no-cache add \
|
|
build-base \
|
|
curl \
|
|
git \
|
|
jpeg-dev \
|
|
libffi-dev \
|
|
libxml2 \
|
|
libxml2-dev \
|
|
libxslt \
|
|
libxslt-dev \
|
|
musl \
|
|
musl-dev \
|
|
openjpeg-dev \
|
|
openssl \
|
|
openssl-dev \
|
|
python3 \
|
|
python3-dev \
|
|
py3-cryptography \
|
|
py3-ipaddr \
|
|
py3-beautifulsoup4 \
|
|
py3-dnspython \
|
|
py3-exifread \
|
|
py3-future \
|
|
py3-jaraco.classes \
|
|
py3-jaraco.context \
|
|
py3-jaraco.functools \
|
|
py3-lxml \
|
|
py3-mako \
|
|
py3-more-itertools \
|
|
py3-netaddr \
|
|
py3-networkx \
|
|
py3-openssl \
|
|
py3-pillow \
|
|
py3-portend \
|
|
# py3-pypdf2 \
|
|
py3-phonenumbers \
|
|
py3-pip \
|
|
py3-pysocks \
|
|
py3-requests \
|
|
py3-tempora \
|
|
py3-wheel \
|
|
py3-xlsxwriter \
|
|
py3-yaml \
|
|
swig \
|
|
tinyxml \
|
|
tinyxml-dev \
|
|
zlib-dev && \
|
|
#
|
|
# Setup user
|
|
addgroup -g 2000 spiderfoot && \
|
|
adduser -S -s /bin/ash -u 2000 -D -g 2000 spiderfoot && \
|
|
#
|
|
# Install spiderfoot
|
|
# git clone --depth=1 -b v4.0 https://github.com/smicallef/spiderfoot /home/spiderfoot && \
|
|
git config --global --add safe.directory /home/spiderfoot && \
|
|
git clone https://github.com/smicallef/spiderfoot /home/spiderfoot && \
|
|
cd /home/spiderfoot && \
|
|
git checkout 0f815a203afebf05c98b605dba5cf0475a0ee5fd && \
|
|
pip3 install --break-system-packages --upgrade pip && \
|
|
cp /root/dist/requirements.txt . && \
|
|
pip3 install --break-system-packages --no-cache-dir -r requirements.txt && \
|
|
mkdir -p /home/spiderfoot/.spiderfoot/logs && \
|
|
chown -R spiderfoot:spiderfoot /home/spiderfoot && \
|
|
sed -i "s#'root': '\/'#'root': '\/spiderfoot'#" /home/spiderfoot/sf.py && \
|
|
sed -i "s#'root', '\/'#'root', '\/spiderfoot'#" /home/spiderfoot/sf.py && \
|
|
#
|
|
# Clean up
|
|
apk del --purge build-base \
|
|
gcc \
|
|
git \
|
|
libffi-dev \
|
|
libxml2-dev \
|
|
libxslt-dev \
|
|
musl-dev \
|
|
openssl-dev \
|
|
python3-dev \
|
|
swig \
|
|
tinyxml-dev && \
|
|
rm -rf /var/cache/apk/* /home/spiderfoot/.git
|
|
#
|
|
# Healthcheck
|
|
HEALTHCHECK --retries=10 CMD curl -s -XGET 'http://127.0.0.1:8080/spiderfoot/'
|
|
#
|
|
# Set user, workdir and start spiderfoot
|
|
USER spiderfoot:spiderfoot
|
|
WORKDIR /home/spiderfoot
|
|
CMD echo -n >> /home/spiderfoot/.spiderfoot/spiderfoot.db && exec /usr/bin/python3 sf.py -l 0.0.0.0:8080
|