-
Notifications
You must be signed in to change notification settings - Fork 39
/
Dockerfile
27 lines (20 loc) · 827 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:buster
LABEL version="3.0.2-dev" \
author="Author BlackArch (https://github.com/BlackArch)" \
docker_build="docker build -t blackarch/sploitctl:3.0.2-dev ." \
docker_run_basic="docker run --rm blackarch/sploitctl:3.0.2-dev -H"
COPY [".", "/sploitctl"]
ENV PATH=${PATH}:/sploitctl
RUN apt-get update && \
apt-get install -y build-essential libffi-dev libgit2-dev && \
pip install -r /sploitctl/requirements.txt && \
addgroup sploitctl && \
useradd -g sploitctl -d /sploitctl -s /bin/sh sploitctl && \
chown -R sploitctl:sploitctl /sploitctl && \
export RANDOM_PASSWORD=$(tr -dc A-Za-z0-9 </dev/urandom | head -c44) && \
echo "root:$RANDOM_PASSWORD" | chpasswd && \
unset RANDOM_PASSWORD && \
passwd -l root
USER sploitctl
ENTRYPOINT ["sploitctl.py"]
CMD ["-h"]