mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
tanner, snare, deps
This commit is contained in:
39
docker/tanner/snare/Dockerfile
Normal file
39
docker/tanner/snare/Dockerfile
Normal file
@ -0,0 +1,39 @@
|
||||
FROM alpine
|
||||
|
||||
# Include dist
|
||||
#ADD dist/ /root/dist/
|
||||
|
||||
# Setup apt
|
||||
RUN apk -U --no-cache add \
|
||||
build-base \
|
||||
git \
|
||||
libcap \
|
||||
linux-headers \
|
||||
python3 \
|
||||
python3-dev && \
|
||||
|
||||
# Setup ConPot
|
||||
git clone 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 clone.py --target http://example.com && \
|
||||
cd / && \
|
||||
#setcap cap_net_bind_service=+ep /usr/bin/python3.6 && \
|
||||
|
||||
# Get wireshark manuf db for scapy, setup configs, user, groups
|
||||
addgroup -g 2000 snare && \
|
||||
adduser -S -s /bin/ash -u 2000 -D -g 2000 snare && \
|
||||
|
||||
# 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
|
||||
WORKDIR /opt/snare
|
||||
CMD /usr/bin/python3.6 /opt/snare/snare.py --tanner tanner --debug true --no-dorks --auto-update false --host-ip 0.0.0.0 --port 80 --page-dir example.com
|
19
docker/tanner/snare/docker-compose.yml
Normal file
19
docker/tanner/snare/docker-compose.yml
Normal file
@ -0,0 +1,19 @@
|
||||
version: '2.3'
|
||||
|
||||
networks:
|
||||
snare_local:
|
||||
|
||||
services:
|
||||
|
||||
# Snare service
|
||||
snare:
|
||||
build: .
|
||||
container_name: snare
|
||||
restart: always
|
||||
stop_signal: SIGKILL
|
||||
tty: true
|
||||
networks:
|
||||
- snare_local
|
||||
ports:
|
||||
- "80:80"
|
||||
image: "dtagdevsec/snare:1804"
|
Reference in New Issue
Block a user