-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
55 lines (47 loc) · 1.31 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM debian:bullseye
ARG PYTHON_VERSION=3.9.2-3
ARG USERNAME=rm
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /tmp
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
apt-transport-https \
bash \
bash-completion \
binutils \
build-essential \
ca-certificates \
curl \
git \
gnupg \
libbz2-dev \
libffi-dev \
libgmp-dev \
libpcap-dev \
libssl-dev \
lsb-release \
netcat \
openssh-server \
pkg-config \
python3 \
python3-dev \
python3-pip \
software-properties-common \
sudo \
tcpdump \
tshark \
unzip \
vim \
wget \
yasm \
zlib1g-dev
RUN pip install pypykatz pwntools
RUN useradd -rm -d /home/${USERNAME} -s /bin/bash -G sudo -u 1001 -p JkqZWdvHiO44w ${USERNAME}
RUN chown -R ${USERNAME} /home/${USERNAME}
WORKDIR /home/${USERNAME}
RUN git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git sqlmap
RUN git clone https://github.com/openwall/john -b bleeding-jumbo john && cd john/src && ./configure && make -s clean && make -sj4
USER ${USERNAME}
RUN curl https://github.com/raw/creationix/nvm/master/install.sh | bash
RUN export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && nvm install node
WORKDIR /home/${USERNAME}
CMD [ "/bin/bash", "-l", "-c" ]