image tweaking

This commit is contained in:
t3chn0m4g3 2022-03-08 23:36:03 +00:00
parent 22904d402a
commit 9d7c24892d
25 changed files with 64 additions and 64 deletions

View file

@ -5,7 +5,7 @@ RUN apk -U add --no-cache \
build-base \
git \
g++ && \
apk -U add go --repository http://dl-3.alpinelinux.org/alpine/edge/community && \
apk -U add --no-cache go --repository http://dl-3.alpinelinux.org/alpine/edge/community && \
#
# Setup go, build dicompot
mkdir -p /opt/go && \

View file

@ -2,7 +2,7 @@ FROM ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Determine arch, get and install packages
RUN ARCH=$(arch) && \
@ -16,7 +16,6 @@ RUN ARCH=$(arch) && \
http://ftp.us.debian.org/debian/pool/main/libe/libemu/libemu-dev_0.2.0+git20120122-1.2+b1_$ARCH.deb && \
apt install ./libemu2_0.2.0+git20120122-1.2+b1_$ARCH.deb \
./libemu-dev_0.2.0+git20120122-1.2+b1_$ARCH.deb -y && \
apt-get dist-upgrade -y && \
apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
@ -108,7 +107,7 @@ RUN ARCH=$(arch) && \
#
apt-get autoremove --purge -y && \
apt-get clean && \
rm -rf /root/* /var/lib/apt/lists/* /tmp/* /var/tmp/*
rm -rf /root/* /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.cache /opt/dionaea/.git
#
# Start dionaea
USER dionaea:dionaea

View file

@ -1,10 +1,10 @@
FROM alpine:3.15
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Install packages
RUN apk -U add \
RUN apk -U --no-cache add \
build-base \
ca-certificates \
git \
@ -39,7 +39,7 @@ RUN apk -U add \
postgresql-dev \
python3-dev && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
rm -rf /var/cache/apk/* /opt/elasticpot/.git
#
# Start elasticpot
STOPSIGNAL SIGINT

View file

@ -4,10 +4,9 @@ FROM ubuntu:20.04
ENV ES_VER=8.0.0
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
RUN apt-get update -y && \
apt-get dist-upgrade -y && \
apt-get install -y \
aria2 \
curl && \
@ -37,7 +36,7 @@ RUN apt-get update -y && \
# Clean up
apt-get purge aria2 -y && \
apt-get autoremove -y --purge && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/dist
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.cache /root/*
#
# Healthcheck
HEALTHCHECK --retries=10 CMD curl -s -XGET 'http://127.0.0.1:9200/_cat/health'

View file

@ -3,10 +3,9 @@ FROM ubuntu:20.04
# VARS
ENV KB_VER=8.0.0
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
RUN apt-get update -y && \
apt-get dist-upgrade -y && \
apt-get install -y \
aria2 \
curl && \
@ -47,7 +46,7 @@ RUN apt-get update -y && \
# Clean up
apt-get purge aria2 -y && \
apt-get autoremove -y --purge && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/dist
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.cache /root/*
#
# Healthcheck
HEALTHCHECK --retries=10 CMD curl -s -XGET 'http://127.0.0.1:5601'

View file

@ -3,11 +3,10 @@ FROM ubuntu:20.04
# VARS
ENV LS_VER=8.0.0
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Setup env and apt
RUN apt-get update -y && \
apt-get dist-upgrade -y && \
apt-get install -y \
aria2 \
autossh \
@ -55,7 +54,7 @@ RUN apt-get update -y && \
#
# Clean up
apt-get autoremove -y --purge && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/dist
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.cache /root/*
#
# Healthcheck
HEALTHCHECK --retries=10 CMD curl -s -XGET 'http://127.0.0.1:9600'

View file

@ -1,10 +1,10 @@
FROM alpine:3.15
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Install packages
RUN apk -U add \
RUN apk -U --no-cache add \
build-base \
git \
libcap \
@ -32,8 +32,7 @@ RUN apk -U add \
apk del --purge build-base \
git \
python3-dev && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
rm -rf /root/* /var/cache/apk/* /opt/geoip-attack-map/.git
#
# Start wordpot
STOPSIGNAL SIGINT

View file

@ -1,7 +1,7 @@
FROM alpine:3.15
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Install packages
RUN apk -U --no-cache add \
@ -20,6 +20,7 @@ RUN apk -U --no-cache add \
py3-requests \
py3-pip \
py3-setuptools && \
pip3 install --upgrade pip && \
pip3 install --no-cache-dir configparser hpfeeds3 influxdb influxdb-client pyOpenSSL xmljson && \
#
# Setup ewsposter
@ -44,8 +45,7 @@ RUN apk -U --no-cache add \
openssl-dev \
python3-dev \
py-setuptools && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
rm -rf /root/* /var/cache/apk/* /opt/ewsposter/.git
#
# Run ewsposter
STOPSIGNAL SIGINT

View file

@ -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

View file

@ -1,7 +1,7 @@
FROM alpine:3.15
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Setup apk
RUN apk -U --no-cache add \
@ -47,7 +47,7 @@ RUN apk -U --no-cache add \
g++ && \
rm -rf /var/cache/apk/* \
/opt/go \
/root/dist
/root/*
#
# Start glutton
WORKDIR /opt/glutton

View file

@ -1,7 +1,7 @@
FROM alpine:3.15
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Setup apk
RUN apk -U --no-cache add \
@ -41,7 +41,7 @@ RUN apk -U --no-cache add \
g++ && \
rm -rf /var/cache/apk/* \
/opt/go \
/root/dist
/root/*
#
# Start hellpot
WORKDIR /opt/hellpot

View file

@ -1,7 +1,7 @@
FROM alpine:3.15
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Install packages
RUN apk -U --no-cache add \

View file

@ -1,10 +1,10 @@
FROM alpine:3.15
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Install packages
RUN apk -U add \
RUN apk -U --no-cache add \
build-base \
freetds \
freetds-dev \
@ -53,8 +53,8 @@ RUN apk -U add \
postgresql-dev \
python3-dev \
zlib-dev && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
rm -rf /root/* /var/cache/apk/* /opt/honeypots/.git
#
# Start honeypots
STOPSIGNAL SIGINT

View file

@ -2,12 +2,11 @@ FROM ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Setup apt
RUN apt-get update && \
apt-get update -y && \
apt-get dist-upgrade -y && \
#
# Install packages
apt-get install -y autoconf \
@ -56,7 +55,7 @@ RUN apt-get update && \
libnetfilter-queue-dev \
libpq-dev && \
apt-get autoremove -y --purge && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.cache /root/* /opt/honeytrap/.git
#
# Start honeytrap
USER honeytrap:honeytrap

View file

@ -1,10 +1,10 @@
FROM alpine:3.15
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Install packages
RUN apk -U add \
RUN apk -U --no-cache add \
build-base \
ca-certificates \
git \
@ -40,8 +40,7 @@ RUN apk -U add \
openssl-dev \
postgresql-dev \
python3-dev && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
rm -rf /root/* /var/cache/apk/* /opt/ipphoney/.git
#
# Start ipphoney
STOPSIGNAL SIGINT

View file

@ -18,8 +18,7 @@ RUN apk -U --no-cache add \
#
# Clean up
apk del --purge git && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
rm -rf /root/* /var/cache/apk/* /opt/mailoney/.git
#
# Set workdir and start mailoney
STOPSIGNAL SIGINT

View file

@ -1,13 +1,12 @@
FROM alpine:3.15
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Get and install dependencies & packages
RUN apk -U --no-cache add \
nginx \
nginx-mod-http-headers-more \
&& \
nginx-mod-http-headers-more && \
#
## Setup T-Pot Landing Page, Eleasticvue, Cyberchef
cp -R /root/dist/html/* /var/lib/nginx/html/ && \

View file

@ -3,7 +3,7 @@
FROM alpine:3.15
#
# Add source
ADD . /opt/p0f
COPY . /opt/p0f
#
# Install packages
RUN apk -U --no-cache add \

View file

@ -1,7 +1,7 @@
FROM alpine:3.15
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Setup apk
RUN apk -U --no-cache add \
@ -35,7 +35,8 @@ RUN apk -U --no-cache add \
g++ && \
rm -rf /var/cache/apk/* \
/opt/go \
/root/dist
/root/* \
/opt/redishoneypot/.git
#
# Start redishoneypot
WORKDIR /opt/redishoneypot

View file

@ -51,7 +51,7 @@ RUN apk -U --no-cache add \
python3-dev \
swig \
tinyxml-dev && \
rm -rf /var/cache/apk/*
rm -rf /var/cache/apk/* /home/spiderfoot/.git
#
# Healthcheck
HEALTHCHECK --retries=10 CMD curl -s -XGET 'http://127.0.0.1:8080/spiderfoot/'

View file

@ -39,8 +39,7 @@ RUN apk -U --no-cache add \
git \
php7-dev \
python3-dev && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
rm -rf /root/* /var/cache/apk/* /opt/phpox/.git
#
# Set workdir and start phpsandbox
STOPSIGNAL SIGKILL

View file

@ -1,7 +1,7 @@
FROM alpine:3.15
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Setup apk and redis
RUN apk -U --no-cache add redis shadow && \

View file

@ -1,7 +1,7 @@
FROM alpine:3.15
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Setup apt
RUN apk -U --no-cache add \
@ -24,6 +24,12 @@ RUN apk -U --no-cache add \
mkdir -p /opt/snare/pages && \
# clone --target http://example.com && \
mv /root/dist/pages/* /opt/snare/pages/ && \
#
# Setup configs, user, groups
addgroup -g 2000 snare && \
adduser -S -s /bin/ash -u 2000 -D -g 2000 snare && \
mkdir /var/log/tanner && \
chown -R snare:snare /opt/snare && \
#
# Clean up
apk del --purge \
@ -36,5 +42,6 @@ RUN apk -U --no-cache add \
#
# Start snare
STOPSIGNAL SIGKILL
USER snare:snare
#CMD snare --tanner tanner --debug true --no-dorks true --auto-update false --host-ip 0.0.0.0 --port 80 --page-dir $(shuf -i 1-10 -n 1)
CMD snare --tanner tanner --debug true --auto-update false --host-ip 0.0.0.0 --port 80 --page-dir $(shuf -i 1-10 -n 1)

View file

@ -1,7 +1,7 @@
FROM alpine:3.15
#
# Include dist
ADD dist/ /root/dist/
COPY dist/ /root/dist/
#
# Setup apt
RUN apk -U --no-cache add \
@ -59,8 +59,7 @@ RUN apk -U --no-cache add \
linux-headers \
python3-dev && \
rm -rf /root/* && \
rm -rf /tmp/* /var/tmp/* && \
rm -rf /var/cache/apk/*
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /opt/tanner/.git
#
# Start tanner
STOPSIGNAL SIGKILL

View file

@ -1,9 +1,9 @@
FROM alpine:3.15
#
# Include dist
ADD dist/ /root/dist/
#COPY dist/ /root/dist/
# Install packages
RUN apk -U add \
RUN apk -U --no-cache add \
build-base \
git \
libcap \
@ -18,7 +18,7 @@ RUN apk -U add \
cd wordpot2 && \
git checkout e93a2e00d84d280b0acd58ba6889b4bee8a6e4d2 && \
sed "s/MarkupSafe==1.0/MarkupSafe==1.1.1/g" -i requirements.txt && \
cp /root/dist/views.py /opt/wordpot2/wordpot/views.py && \
# cp /root/dist/views.py /opt/wordpot2/wordpot/views.py && \
pip3 install -r requirements.txt && \
setcap cap_net_bind_service=+ep /usr/bin/python3.9 && \
#
@ -31,8 +31,7 @@ RUN apk -U add \
apk del --purge build-base \
git \
python3-dev && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
rm -rf /root/* /var/cache/apk/* /opt/wordpot2/.git
#
# Start wordpot
STOPSIGNAL SIGINT