mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
playing with signals
This commit is contained in:
parent
446880de55
commit
d1756fa934
8 changed files with 14 additions and 3 deletions
|
@ -35,4 +35,4 @@ RUN apk -U upgrade && \
|
||||||
# Start elasticsearch-head
|
# Start elasticsearch-head
|
||||||
WORKDIR /opt/ciscoasa_honeypot
|
WORKDIR /opt/ciscoasa_honeypot
|
||||||
USER ciscoasa:ciscoasa
|
USER ciscoasa:ciscoasa
|
||||||
CMD python3 asa_server.py --enable_ssl --verbose >> /var/log/ciscoasa/ciscoasa.log 2>&1
|
CMD exec python3 asa_server.py --enable_ssl --verbose >> /var/log/ciscoasa/ciscoasa.log 2>&1
|
||||||
|
|
|
@ -12,6 +12,7 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: ciscoasa
|
container_name: ciscoasa
|
||||||
restart: always
|
restart: always
|
||||||
|
stop_signal: SIGINT
|
||||||
networks:
|
networks:
|
||||||
- ciscoasa_local
|
- ciscoasa_local
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -21,6 +21,7 @@ RUN apk -U --no-cache add bash \
|
||||||
python-dev \
|
python-dev \
|
||||||
py-cffi \
|
py-cffi \
|
||||||
py-cryptography \
|
py-cryptography \
|
||||||
|
py-pip \
|
||||||
tcpdump \
|
tcpdump \
|
||||||
wget && \
|
wget && \
|
||||||
|
|
||||||
|
@ -31,6 +32,7 @@ RUN apk -U --no-cache add bash \
|
||||||
cp /root/dist/requirements.txt /opt/conpot/ && \
|
cp /root/dist/requirements.txt /opt/conpot/ && \
|
||||||
# Patch to accept ENV for MIB path
|
# Patch to accept ENV for MIB path
|
||||||
cp /root/dist/snmp_server.py /opt/conpot/conpot/protocols/snmp/ && \
|
cp /root/dist/snmp_server.py /opt/conpot/conpot/protocols/snmp/ && \
|
||||||
|
pip install -U pip setuptools && \
|
||||||
python setup.py install && \
|
python setup.py install && \
|
||||||
cd / && \
|
cd / && \
|
||||||
# Monkey patch, see https://github.com/mushorg/conpot/issues/361
|
# Monkey patch, see https://github.com/mushorg/conpot/issues/361
|
||||||
|
@ -64,4 +66,4 @@ RUN apk -U --no-cache add bash \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
# Start conpot
|
# Start conpot
|
||||||
CMD /usr/bin/conpot --template $CONPOT_TEMPLATE --logfile $CONPOT_LOG --config $CONPOT_CONFIG
|
CMD exec /usr/bin/conpot --template $CONPOT_TEMPLATE --logfile $CONPOT_LOG --config $CONPOT_CONFIG
|
||||||
|
|
|
@ -15,6 +15,7 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: conpot_default
|
container_name: conpot_default
|
||||||
restart: always
|
restart: always
|
||||||
|
stop_signal: SIGINT
|
||||||
environment:
|
environment:
|
||||||
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
|
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
|
||||||
- CONPOT_JSON_LOG=/var/log/conpot/conpot_default.json
|
- CONPOT_JSON_LOG=/var/log/conpot/conpot_default.json
|
||||||
|
@ -44,6 +45,7 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: conpot_IEC104
|
container_name: conpot_IEC104
|
||||||
restart: always
|
restart: always
|
||||||
|
stop_signal: SIGINT
|
||||||
environment:
|
environment:
|
||||||
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
|
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
|
||||||
- CONPOT_JSON_LOG=/var/log/conpot/conpot_IEC104.json
|
- CONPOT_JSON_LOG=/var/log/conpot/conpot_IEC104.json
|
||||||
|
@ -68,6 +70,7 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: conpot_guardian_ast
|
container_name: conpot_guardian_ast
|
||||||
restart: always
|
restart: always
|
||||||
|
stop_signal: SIGINT
|
||||||
environment:
|
environment:
|
||||||
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
|
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
|
||||||
- CONPOT_JSON_LOG=/var/log/conpot/conpot_guardian_ast.json
|
- CONPOT_JSON_LOG=/var/log/conpot/conpot_guardian_ast.json
|
||||||
|
@ -91,6 +94,7 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: conpot_ipmi
|
container_name: conpot_ipmi
|
||||||
restart: always
|
restart: always
|
||||||
|
stop_signal: SIGINT
|
||||||
environment:
|
environment:
|
||||||
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
|
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
|
||||||
- CONPOT_JSON_LOG=/var/log/conpot/conpot_ipmi.json
|
- CONPOT_JSON_LOG=/var/log/conpot/conpot_ipmi.json
|
||||||
|
@ -114,6 +118,7 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: conpot_kamstrup_382
|
container_name: conpot_kamstrup_382
|
||||||
restart: always
|
restart: always
|
||||||
|
stop_signal: SIGINT
|
||||||
environment:
|
environment:
|
||||||
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
|
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
|
||||||
- CONPOT_JSON_LOG=/var/log/conpot/conpot_kamstrup_382.json
|
- CONPOT_JSON_LOG=/var/log/conpot/conpot_kamstrup_382.json
|
||||||
|
|
|
@ -10,6 +10,7 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: elasticpot
|
container_name: elasticpot
|
||||||
restart: always
|
restart: always
|
||||||
|
stop_signal: SIGINT
|
||||||
networks:
|
networks:
|
||||||
- elasticpot_local
|
- elasticpot_local
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -9,6 +9,7 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: kibana
|
container_name: kibana
|
||||||
restart: always
|
restart: always
|
||||||
|
stop_signal: SIGKILL
|
||||||
# depends_on:
|
# depends_on:
|
||||||
# elasticsearch:
|
# elasticsearch:
|
||||||
# condition: service_healthy
|
# condition: service_healthy
|
||||||
|
|
|
@ -47,4 +47,4 @@ RUN apk -U upgrade && \
|
||||||
|
|
||||||
# Run ewsposter
|
# Run ewsposter
|
||||||
USER ews:ews
|
USER ews:ews
|
||||||
CMD sleep 10 && /usr/bin/python /opt/ewsposter/ews.py -l 60
|
CMD sleep 10 && exec /usr/bin/python /opt/ewsposter/ews.py -l 60
|
||||||
|
|
|
@ -12,6 +12,7 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: ewsposter
|
container_name: ewsposter
|
||||||
restart: always
|
restart: always
|
||||||
|
stop_signal: SIGINT
|
||||||
networks:
|
networks:
|
||||||
- ewsposter_local
|
- ewsposter_local
|
||||||
env_file:
|
env_file:
|
||||||
|
|
Loading…
Reference in a new issue