mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
tweaking glutton, signals
This commit is contained in:
parent
d1756fa934
commit
004af6dec7
13 changed files with 29 additions and 14 deletions
|
@ -12,7 +12,8 @@ RUN apk -U --no-cache add bash \
|
||||||
iptables-dev \
|
iptables-dev \
|
||||||
libnetfilter_queue-dev \
|
libnetfilter_queue-dev \
|
||||||
libpcap-dev \
|
libpcap-dev \
|
||||||
procps && \
|
procps \
|
||||||
|
upx && \
|
||||||
|
|
||||||
# Setup go, glutton
|
# Setup go, glutton
|
||||||
export GOPATH=/opt/go/ && \
|
export GOPATH=/opt/go/ && \
|
||||||
|
@ -27,6 +28,7 @@ RUN apk -U --no-cache add bash \
|
||||||
mv /opt/go/src/github.com/mushorg/glutton/bin /opt/glutton/ && \
|
mv /opt/go/src/github.com/mushorg/glutton/bin /opt/glutton/ && \
|
||||||
mv /opt/go/src/github.com/mushorg/glutton/config /opt/glutton/ && \
|
mv /opt/go/src/github.com/mushorg/glutton/config /opt/glutton/ && \
|
||||||
mv /opt/go/src/github.com/mushorg/glutton/rules /opt/glutton/ && \
|
mv /opt/go/src/github.com/mushorg/glutton/rules /opt/glutton/ && \
|
||||||
|
upx /opt/glutton/bin/server && \
|
||||||
|
|
||||||
# Setup user, groups and configs
|
# Setup user, groups and configs
|
||||||
addgroup -g 2000 glutton && \
|
addgroup -g 2000 glutton && \
|
||||||
|
@ -38,7 +40,8 @@ RUN apk -U --no-cache add bash \
|
||||||
apk del --purge build-base \
|
apk del --purge build-base \
|
||||||
git \
|
git \
|
||||||
go \
|
go \
|
||||||
g++ && \
|
g++ \
|
||||||
|
upx && \
|
||||||
rm -rf /var/cache/apk/* \
|
rm -rf /var/cache/apk/* \
|
||||||
/opt/go \
|
/opt/go \
|
||||||
/root/dist
|
/root/dist
|
||||||
|
|
15
docker/glutton/dist/rules.yaml
vendored
15
docker/glutton/dist/rules.yaml
vendored
|
@ -1,22 +1,27 @@
|
||||||
|
# Put passthrough rules on top, drop rules on bottom, rules are applied in order (top down)
|
||||||
rules:
|
rules:
|
||||||
|
- match: udp dst port 53
|
||||||
|
type: passthrough
|
||||||
|
- match: tcp dst port 21
|
||||||
|
type: conn_handler
|
||||||
|
target: ftp
|
||||||
- match: tcp dst port 23 or port 2323 or port 23231
|
- match: tcp dst port 23 or port 2323 or port 23231
|
||||||
type: conn_handler
|
type: conn_handler
|
||||||
target: telnet
|
target: telnet
|
||||||
- match: tcp dst port 25
|
- match: tcp dst port 25
|
||||||
type: conn_handler
|
type: conn_handler
|
||||||
target: smtp
|
target: smtp
|
||||||
- match: tcp dst port 3389
|
|
||||||
type: conn_handler
|
|
||||||
target: rdp
|
|
||||||
- match: tcp dst port 445
|
- match: tcp dst port 445
|
||||||
type: conn_handler
|
type: conn_handler
|
||||||
target: smb
|
target: smb
|
||||||
- match: tcp dst port 21
|
- match: tcp dst port 3389
|
||||||
type: conn_handler
|
type: conn_handler
|
||||||
target: ftp
|
target: rdp
|
||||||
- match: tcp dst port 5060
|
- match: tcp dst port 5060
|
||||||
type: conn_handler
|
type: conn_handler
|
||||||
target: sip
|
target: sip
|
||||||
- match: tcp
|
- match: tcp
|
||||||
type: conn_handler
|
type: conn_handler
|
||||||
target: default
|
target: default
|
||||||
|
- match:
|
||||||
|
type: drop
|
||||||
|
|
2
docker/glutton/notes
Normal file
2
docker/glutton/notes
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
dtagdevsec/glutton 1804 44eed3090ae5 12 hours ago 35.3 MB
|
||||||
|
|
|
@ -46,4 +46,4 @@ RUN apk -U upgrade && \
|
||||||
|
|
||||||
# Start elasticpot
|
# Start elasticpot
|
||||||
WORKDIR /tmp/heralding/
|
WORKDIR /tmp/heralding/
|
||||||
CMD ["heralding","-c","/etc/heralding/heralding.yml","-l","/var/log/heralding/heralding.log"]
|
CMD exec heralding -c /etc/heralding/heralding.yml -l /var/log/heralding/heralding.log
|
||||||
|
|
|
@ -10,6 +10,7 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: heralding
|
container_name: heralding
|
||||||
restart: always
|
restart: always
|
||||||
|
stop_signal: SIGINT
|
||||||
environment:
|
environment:
|
||||||
- PYTHON_EGG_CACHE=/tmp/heralding
|
- PYTHON_EGG_CACHE=/tmp/heralding
|
||||||
tmpfs:
|
tmpfs:
|
||||||
|
|
|
@ -10,6 +10,7 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: mailoney
|
container_name: mailoney
|
||||||
restart: always
|
restart: always
|
||||||
|
stop_signal: SIGINT
|
||||||
networks:
|
networks:
|
||||||
- mailoney_local
|
- mailoney_local
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -35,4 +35,4 @@ RUN apk -U upgrade && \
|
||||||
# Start suricata
|
# Start suricata
|
||||||
WORKDIR /opt/p0f
|
WORKDIR /opt/p0f
|
||||||
USER p0f:p0f
|
USER p0f:p0f
|
||||||
CMD /bin/bash -c "exec /opt/p0f/p0f -u p0f -j -o /var/log/p0f/p0f.json -i $(/sbin/ip address | grep '^2: ' | awk '{ print $2 }' | tr -d [:punct:])"
|
CMD exec /opt/p0f/p0f -u p0f -j -o /var/log/p0f/p0f.json -i $(/sbin/ip address | grep '^2: ' | awk '{ print $2 }' | tr -d [:punct:])
|
||||||
|
|
|
@ -53,4 +53,4 @@ RUN apk -U upgrade && \
|
||||||
|
|
||||||
# Start rdpy
|
# Start rdpy
|
||||||
USER rdpy:rdpy
|
USER rdpy:rdpy
|
||||||
CMD /usr/bin/python2 -i /usr/bin/rdpy-rdphoneypot.py /home/rdpy/$(shuf -i 1-3 -n 1) >> /var/log/rdpy/rdpy.log
|
CMD exec /usr/bin/python2 -i /usr/bin/rdpy-rdphoneypot.py /home/rdpy/$(shuf -i 1-3 -n 1) >> /var/log/rdpy/rdpy.log
|
||||||
|
|
|
@ -30,4 +30,4 @@ RUN apk -U upgrade && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
# Start suricata
|
# Start suricata
|
||||||
CMD update.sh $OINKCODE && suricata -v -F /etc/suricata/capture-filter.bpf -i $(/sbin/ip address | grep '^2: ' | awk '{ print $2 }' | tr -d [:punct:])
|
CMD update.sh $OINKCODE && exec suricata -v -F /etc/suricata/capture-filter.bpf -i $(/sbin/ip address | grep '^2: ' | awk '{ print $2 }' | tr -d [:punct:])
|
||||||
|
|
|
@ -9,6 +9,7 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: suricata
|
container_name: suricata
|
||||||
restart: always
|
restart: always
|
||||||
|
stop_signal: SIGINT
|
||||||
environment:
|
environment:
|
||||||
# For ET Pro ruleset replace <OPEN> with your OINKCODE
|
# For ET Pro ruleset replace <OPEN> with your OINKCODE
|
||||||
- OINKCODE=OPEN
|
- OINKCODE=OPEN
|
||||||
|
|
|
@ -23,8 +23,9 @@ RUN apk -U add bash \
|
||||||
apk del build-base \
|
apk del build-base \
|
||||||
git \
|
git \
|
||||||
go && \
|
go && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /opt/go/src \
|
||||||
|
/var/cache/apk/* \
|
||||||
|
|
||||||
# Run supervisor upon container start
|
# Run supervisor upon container start
|
||||||
USER vnclowpot:vnclowpot
|
USER vnclowpot:vnclowpot
|
||||||
CMD /opt/go/bin/vnclowpot -j >> /var/log/vnclowpot/vnclowpot.log
|
CMD exec /opt/go/bin/vnclowpot -j >> /var/log/vnclowpot/vnclowpot.log
|
||||||
|
|
|
@ -29,4 +29,4 @@ RUN apk -U upgrade && \
|
||||||
# Start elasticsearch-head
|
# Start elasticsearch-head
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
USER wetty:wetty
|
USER wetty:wetty
|
||||||
CMD /usr/bin/node /opt/node_modules/wetty/app.js -p 64300 --host 127.0.0.1 --sshhost 127.0.0.1 --sshport 64295 --sshuser $MY_SSHUSER
|
CMD exec /usr/bin/node /opt/node_modules/wetty/app.js -p 64300 --host 127.0.0.1 --sshhost 127.0.0.1 --sshport 64295 --sshuser $MY_SSHUSER
|
||||||
|
|
|
@ -9,6 +9,7 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: wetty
|
container_name: wetty
|
||||||
restart: always
|
restart: always
|
||||||
|
stop_signal: SIGKILL
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
env_file:
|
env_file:
|
||||||
- /opt/tpot/etc/compose/wetty_environment
|
- /opt/tpot/etc/compose/wetty_environment
|
||||||
|
|
Loading…
Reference in a new issue