mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-29 11:48:52 +00:00
31 lines
892 B
Docker
31 lines
892 B
Docker
FROM alpine
|
|
|
|
# Setup apt
|
|
RUN apk -U --no-cache add \
|
|
build-base \
|
|
git \
|
|
linux-headers \
|
|
python3 \
|
|
python3-dev && \
|
|
|
|
# Setup Snare
|
|
git clone --depth=1 https://github.com/mushorg/snare /opt/snare && \
|
|
cd /opt/snare/ && \
|
|
pip3 install --no-cache-dir --upgrade pip setuptools && \
|
|
pip3 install --no-cache-dir -r requirements.txt && \
|
|
python3.6 setup.py install && \
|
|
cd / && \
|
|
rm -rf /opt/snare && \
|
|
clone --target http://example.com && \
|
|
|
|
# Clean up
|
|
apk del --purge \
|
|
build-base \
|
|
linux-headers \
|
|
python3-dev && \
|
|
rm -rf /root/* && \
|
|
rm -rf /tmp/* /var/tmp/* && \
|
|
rm -rf /var/cache/apk/*
|
|
|
|
# Start snare
|
|
CMD snare --tanner tanner --debug true --no-dorks true --auto-update false --host-ip 0.0.0.0 --port 8080 --page-dir example.com
|