add fatt to nextgen

This commit is contained in:
t3chn0m4g3
2019-06-01 17:47:14 +00:00
parent d3239b78c4
commit 4e902b6560
6 changed files with 33 additions and 9 deletions

View File

@ -6,7 +6,6 @@ FROM alpine
# Get and install dependencies & packages
RUN apk -U add \
git \
libcap \
py3-libxml2 \
py3-lxml \
python3 \
@ -18,16 +17,16 @@ RUN apk -U add \
adduser -S -s /bin/ash -u 2000 -D -g 2000 fatt && \
# Install fatt
mkdir -p /home/fatt && \
cd /home/fatt && \
mkdir -p log && \
mkdir -p /opt && \
cd /opt && \
git clone --depth=1 https://github.com/0x4D31/fatt && \
cd fatt && \
mkdir -p log && \
pip3 install --upgrade pip && \
pip3 install pyshark==0.4.2.2 && \
# Setup configs
chown fatt:fatt -R /home/fatt/* && \
chown fatt:fatt -R /opt/fatt/* && \
# Clean up
apk del --purge git \
@ -37,6 +36,6 @@ RUN apk -U add \
# Start fatt
STOPSIGNAL SIGINT
ENV PYTHONPATH /home/fatt/fatt
WORKDIR /home/fatt/fatt
ENV PYTHONPATH /opt/fatt
WORKDIR /opt/fatt
CMD python3 fatt.py -i $(/sbin/ip address | grep '^2: ' | awk '{ print $2 }' | tr -d [:punct:]) --print_output --json_logging -o log/fatt.log

View File

@ -3,7 +3,7 @@ version: '2.3'
services:
# Fatt service
suricata:
fatt:
build: .
container_name: fatt
restart: always
@ -14,4 +14,4 @@ services:
- NET_RAW
image: "dtagdevsec/fatt:1903"
volumes:
- /data/fatt/log:/home/fatt/fatt/log
- /data/fatt/log:/opt/fatt/log