This commit is contained in:
t3chn0m4g3 2024-02-28 21:05:03 +01:00
parent be74fc75ca
commit 519a101fdf
10 changed files with 37 additions and 36 deletions

View file

@ -3,7 +3,7 @@ import sys
import time
if len(sys.argv) != 3:
print("Usage: script.py <PID> <CPU_USAGE_THRESHOLD>")
print("Usage: cpu_check.py <PID> <CPU_USAGE_THRESHOLD>")
sys.exit(1)
try:

View file

@ -3,7 +3,7 @@ import sys
import time
if len(sys.argv) != 3:
print("Usage: script.py <PID> <CPU_USAGE_THRESHOLD>")
print("Usage: cpu_check.py <PID> <CPU_USAGE_THRESHOLD>")
sys.exit(1)
try:

View file

@ -40,7 +40,6 @@ RUN ARCH=$(arch) && \
python3-boto3 \
python3-bson \
python3-yaml \
python3-psutil \
fonts-liberation && \
#
# Get and install dionaea
@ -96,6 +95,7 @@ RUN ARCH=$(arch) && \
python3 \
python3-boto3 \
python3-bson \
python3-psutil \
python3-yaml \
libcurl4 \
libemu2 \

View file

@ -3,7 +3,7 @@ import sys
import time
if len(sys.argv) != 3:
print("Usage: script.py <PID> <CPU_USAGE_THRESHOLD>")
print("Usage: cpu_check.py <PID> <CPU_USAGE_THRESHOLD>")
sys.exit(1)
try:

View file

@ -19,4 +19,4 @@ services:
image: "dtagdevsec/endlessh:alpha"
read_only: true
volumes:
- /data/endlessh/log:/var/log/endlessh
- $HOME/tpotce/data/endlessh/log:/var/log/endlessh

View file

@ -1,4 +1,4 @@
FROM alpine:3.17
FROM alpine:3.19
#
# Include dist
COPY dist/ /root/dist/
@ -8,7 +8,7 @@ RUN apk -U --no-cache add \
build-base \
git \
libffi-dev \
libssl1.1 \
libssl3 \
openssl-dev \
python3 \
python3-dev \
@ -22,8 +22,9 @@ RUN apk -U --no-cache add \
py3-pip \
py3-setuptools \
py3-wheel && \
pip3 install --upgrade pip && \
pip3 install --no-cache-dir configparser hpfeeds3 influxdb influxdb-client xmljson && \
pip3 install --break-system-packages --upgrade pip && \
pip3 install --break-system-packages --no-cache-dir configparser hpfeeds3 influxdb influxdb-client xmljson && \
#
# Setup ewsposter
git clone https://github.com/telekom-security/ewsposter -b v1.25.0 /opt/ewsposter && \

View file

@ -21,11 +21,9 @@ services:
- EWS_HPFEEDS_CHANNELS=channels
- EWS_HPFEEDS_IDENT=user
- EWS_HPFEEDS_SECRET=secret
- EWS_HPFEEDS_TLSCERT=/opt/ewsposter/ca.pem
- EWS_HPFEEDS_TLSCERT=false
- EWS_HPFEEDS_FORMAT=json
env_file:
- /opt/tpot/etc/compose/elk_environment
image: "dtagdevsec/ewsposter:alpha"
volumes:
- /data:/data
# - /data/ews/conf/ews.ip:/opt/ewsposter/ews.ip
- $HOME/tpotce/data:/data
- $HOME/tpotce/data/ews/conf/ews.ip:/opt/ewsposter/ews.ip

View file

@ -41,6 +41,7 @@ RUN apk --no-cache -U add \
#
# Run tpotinit
WORKDIR /opt/tpot
HEALTHCHECK --interval=5m --timeout=30s --retries=3 CMD pgrep -f autoheal || exit 1
#HEALTHCHECK --interval=5s --timeout=30s --retries=3 CMD pgrep -f autoheal || exit 1
HEALTHCHECK --retries=1000 --interval=5s CMD test -f /tmp/success || exit 1
STOPSIGNAL SIGKILL
CMD ["/opt/tpot/entrypoint.sh"]

View file

@ -300,6 +300,7 @@ echo
figlet "Starting ..."
figlet "T-Pot: ${TPOT_VERSION}"
echo
touch /tmp/success
# We want to see true source for UDP packets in container (https://github.com/moby/libnetwork/issues/1994)
# Start autoheal if running on a supported os

View file

@ -9,7 +9,7 @@ services:
env_file:
- $HOME/tpotce/.env
restart: "no"
image: "ghcr.io/telekom-security/tpotinit:alpha"
image: "dtagdevsec/tpotinit:alpha"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- $HOME/tpotce/data:/data