mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
image tweaking
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
FROM alpine:3.15
|
||||
#
|
||||
# Get and install dependencies & packages
|
||||
RUN apk -U add \
|
||||
RUN apk -U --no-cache add \
|
||||
git \
|
||||
libcap \
|
||||
py3-libxml2 \
|
||||
py3-lxml \
|
||||
py3-pip \
|
||||
@ -19,22 +20,25 @@ RUN apk -U add \
|
||||
cd /opt && \
|
||||
git clone https://github.com/0x4D31/fatt && \
|
||||
cd fatt && \
|
||||
git checkout 314cd1ff7873b5a145a51ec4e85f6107828a2c79 && \
|
||||
git checkout 45cabf0b8b59162b99a1732d853efb01614563fe && \
|
||||
#git checkout 314cd1ff7873b5a145a51ec4e85f6107828a2c79 && \
|
||||
mkdir -p log && \
|
||||
# pyshark >= 0.4.3 breaks fatt
|
||||
pip3 install pyshark==0.4.2.11 && \
|
||||
#
|
||||
# Setup configs
|
||||
chgrp fatt /usr/bin/dumpcap && \
|
||||
setcap cap_net_raw,cap_net_admin=+eip /usr/bin/dumpcap && \
|
||||
chown fatt:fatt -R /opt/fatt/* && \
|
||||
#
|
||||
# Clean up
|
||||
apk del --purge git \
|
||||
python3-dev && \
|
||||
rm -rf /root/* && \
|
||||
rm -rf /var/cache/apk/*
|
||||
rm -rf /root/* /var/cache/apk/* /opt/fatt/.git
|
||||
#
|
||||
# Start fatt
|
||||
STOPSIGNAL SIGINT
|
||||
ENV PYTHONPATH /opt/fatt
|
||||
WORKDIR /opt/fatt
|
||||
USER fatt:fatt
|
||||
CMD python3 fatt.py -i $(/sbin/ip address show | /usr/bin/awk '/inet.*brd/{ print $NF; exit }') --print_output --json_logging -o log/fatt.log
|
||||
|
Reference in New Issue
Block a user