-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
77 lines (64 loc) · 1.83 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
FROM --platform=linux/amd64 archlinux:base-devel
ARG USER
ARG PASS
ARG SSH_PORT
ENV SSH_PORT ${SSH_PORT}
ENV PATH "${PATH}:~/.local/bin"
COPY src/sshd_config /etc/ssh/sshd_config
COPY src/pacman.conf /etc/pacman.conf
# Setup pacman & optimize mirrors
RUN \
pacman -Sy && \
pacman -S --needed --noconfirm pacman-contrib && \
pacman-key --init && \
pacman-key --populate archlinux && \
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup && \
sed -i 's/^#Server/Server/' /etc/pacman.d/mirrorlist.backup && \
rankmirrors -n 10 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
# Install base packages
RUN pacman --needed --noconfirm -S \
lib32-glibc \
openssh \
git \
go php \
python2 python2-pip \
python python-pip \
fish vim \
zip p7zip unzip \
gdb radare2 ropper python-keystone python-unicorn ltrace nasm patchelf python-pwntools \
binwalk foremost imagemagick perl-image-exiftool ffmpeg \
metasploit \
fcrackzip pdfcrack john \
wireshark-cli nmap sqlmap gnu-netcat \
tmux \
xorg-xauth xorg-server \
curl wget
# User setup
RUN sed --in-place 's/^#\s*\(%wheel\s\+ALL=(ALL)\s\+NOPASSWD:\s\+ALL\)/\1/' /etc/sudoers
RUN \
useradd -m -s /usr/bin/fish $USER && \
usermod -aG wheel $USER && \
passwd -d $USER
USER $USER
WORKDIR /home/$USER
COPY --chown=cf12:cf12 src/dotfiles ./
# # Install yay
# RUN \
# git clone https://aur.archlinux.org/yay.git /tmp/yay && \
# cd /tmp/yay && makepkg -sic --noconfirm --needed --noprogressbar && \
# rm -rf /tmp/yay
# RUN yay --needed --noconfirm -S \
# gobuster \
# android-apktool \
# zsteg \
# hash-identifier \
# pngcheck steghide \
# ngrok
RUN pip install --user \
angr IPython \
pillow
# Install gef
RUN wget -q -O- https://github.com/hugsy/gef/raw/master/scripts/gef.sh | sh
USER root
RUN ssh-keygen -A
CMD /bin/sshd -D -p ${SSH_PORT}