This commit is contained in:
t3chn0m4g3 2024-12-05 19:32:20 +01:00
parent c155c96945
commit 2b3a45c800
4 changed files with 12 additions and 13 deletions

View file

@ -1,7 +1,8 @@
FROM alpine:3.19 FROM alpine:3.20
# #
# Install packages # Install packages
RUN apk --no-cache -U add \ RUN apk --no-cache -U upgrade && \
apk --no-cache -U add \
build-base \ build-base \
file \ file \
git \ git \
@ -16,7 +17,6 @@ RUN apk --no-cache -U add \
# Install bfr sandbox from git # Install bfr sandbox from git
git clone https://github.com/mushorg/BFR -b v1.0.0 /opt/BFR && \ git clone https://github.com/mushorg/BFR -b v1.0.0 /opt/BFR && \
cd /opt/BFR && \ cd /opt/BFR && \
# git checkout 91a8a4e155875c50b69d5c6af454e304994815a7 && \
phpize83 && \ phpize83 && \
./configure \ ./configure \
--with-php-config=/usr/bin/php-config83 \ --with-php-config=/usr/bin/php-config83 \
@ -30,7 +30,7 @@ RUN apk --no-cache -U add \
# Install PHP Sandbox # Install PHP Sandbox
git clone https://github.com/mushorg/phpox /opt/phpox && \ git clone https://github.com/mushorg/phpox /opt/phpox && \
cd /opt/phpox && \ cd /opt/phpox && \
#git checkout a62c8136ec7b3ebab0c989f4235e2960175121f8 && \ git checkout 55a6cbdc2c62f08eb45acffaf84f23f06a1d4703 && \
make && \ make && \
# #
# Clean up # Clean up

View file

@ -1,10 +1,11 @@
FROM alpine:3.19 FROM alpine:3.20
# #
# Include dist # Include dist
COPY dist/ /root/dist/ COPY dist/ /root/dist/
# #
# Install packages # Install packages
RUN apk --no-cache -U add redis shadow && \ RUN apk --no-cache -U upgrade && \
apk --no-cache -U add redis shadow && \
cp /root/dist/redis.conf /etc && \ cp /root/dist/redis.conf /etc && \
# #
# Setup user and group # Setup user and group

View file

@ -4,7 +4,8 @@ FROM alpine:3.19
COPY dist/ /root/dist/ COPY dist/ /root/dist/
# #
# Install packages # Install packages
RUN apk --no-cache -U add \ RUN apk --no-cache -U upgrade && \
apk --no-cache -U add \
build-base \ build-base \
git \ git \
linux-headers \ linux-headers \
@ -23,7 +24,6 @@ RUN apk --no-cache -U add \
# Setup Snare # Setup Snare
git clone https://github.com/mushorg/snare /opt/snare && \ git clone https://github.com/mushorg/snare /opt/snare && \
cd /opt/snare/ && \ cd /opt/snare/ && \
# git checkout 0919a80838eb0823a3b7029b0264628ee0a36211 && \
git checkout 08c69b7165354ea2040b6170c37d92ff3c304f96 && \ git checkout 08c69b7165354ea2040b6170c37d92ff3c304f96 && \
cp /root/dist/requirements.txt . && \ cp /root/dist/requirements.txt . && \
pip3 install --break-system-packages --no-cache-dir -r requirements.txt && \ pip3 install --break-system-packages --no-cache-dir -r requirements.txt && \
@ -31,7 +31,6 @@ RUN apk --no-cache -U add \
cd / && \ cd / && \
rm -rf /opt/snare && \ rm -rf /opt/snare && \
mkdir -p /opt/snare/pages && \ mkdir -p /opt/snare/pages && \
# clone --target http://example.com && \
mv /root/dist/pages/* /opt/snare/pages/ && \ mv /root/dist/pages/* /opt/snare/pages/ && \
# #
# Setup configs, user, groups # Setup configs, user, groups
@ -52,5 +51,4 @@ RUN apk --no-cache -U add \
# Start snare # Start snare
STOPSIGNAL SIGKILL STOPSIGNAL SIGKILL
USER snare:snare 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) 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

@ -4,7 +4,8 @@ FROM alpine:3.17
COPY dist/ /root/dist/ COPY dist/ /root/dist/
# #
# Install packages # Install packages
RUN apk --no-cache -U add \ RUN apk --no-cache -U upgrade && \
apk --no-cache -U add \
build-base \ build-base \
git \ git \
libcap \ libcap \
@ -31,7 +32,6 @@ RUN apk --no-cache -U add \
python3-dev && \ python3-dev && \
# #
# Setup Tanner # Setup Tanner
# git clone https://github.com/t3chn0m4g3/tanner /opt/tanner && \
git clone https://github.com/mushorg/tanner /opt/tanner && \ git clone https://github.com/mushorg/tanner /opt/tanner && \
cd /opt/tanner/ && \ cd /opt/tanner/ && \
git checkout 245d628f4023e5462c7035e760a6b5eed0a33fbe && \ git checkout 245d628f4023e5462c7035e760a6b5eed0a33fbe && \
@ -64,7 +64,7 @@ RUN apk --no-cache -U add \
git \ git \
libcap \ libcap \
libffi-dev \ libffi-dev \
# libressl-dev \ openssl-dev \
linux-headers \ linux-headers \
python3-dev && \ python3-dev && \
rm -rf /root/* \ rm -rf /root/* \