forked from telekom-security/tpotce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into hpfeeds-cmd
- Loading branch information
Showing
23 changed files
with
193 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
FROM alpine | ||
# | ||
# Include dist | ||
#ADD dist/ /root/dist/ | ||
# | ||
# Get and install dependencies & packages | ||
RUN apk -U add \ | ||
git \ | ||
py3-libxml2 \ | ||
py3-lxml \ | ||
python3 \ | ||
python3-dev && \ | ||
apk -U add tshark --repository http://dl-3.alpinelinux.org/alpine/edge/community/ && \ | ||
# | ||
# Setup user | ||
addgroup -g 2000 fatt && \ | ||
adduser -S -s /bin/ash -u 2000 -D -g 2000 fatt && \ | ||
# | ||
# Install fatt | ||
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 /opt/fatt/* && \ | ||
# | ||
# Clean up | ||
apk del --purge git \ | ||
python3-dev && \ | ||
rm -rf /root/* && \ | ||
rm -rf /var/cache/apk/* | ||
# | ||
# Start fatt | ||
STOPSIGNAL SIGINT | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: '2.3' | ||
|
||
services: | ||
|
||
# Fatt service | ||
fatt: | ||
build: . | ||
container_name: fatt | ||
restart: always | ||
network_mode: "host" | ||
cap_add: | ||
- NET_ADMIN | ||
- SYS_NICE | ||
- NET_RAW | ||
image: "dtagdevsec/fatt:1903" | ||
volumes: | ||
- /data/fatt/log:/opt/fatt/log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.