@@ -19,8 +19,8 @@ RUN apt-get update && \
1919 apt-get dist-upgrade -y && \
2020 echo "wireshark-common wireshark-common/install-setuid boolean true" | debconf-set-selections && \
2121 apt-get install -y --no-install-recommends \
22- curl php binwalk gimp wireshark tshark nmap ht ltrace gdb patchelf elfutils \
23- unzip wget build-essential aria2 jq python3-venv python3-full git ruby ruby-dev \
22+ curl php binwalk gimp wireshark tshark nmap ht ltrace strace gdb patchelf elfutils \
23+ unzip zip wget build-essential cmake default-jdk netcat-openbsd socat aria2 jq python3-venv python3-full git ruby ruby-dev \
2424 libpcap-dev pkg-config libcapstone-dev python3-dev libffi-dev libssl-dev && \
2525 apt-get autoremove -y && \
2626 rm -rf /var/lib/apt/lists/*
@@ -46,25 +46,23 @@ RUN python3 -m venv ${TOOLS_DIR}/venv && \
4646 ${TOOLS_DIR}/venv/bin/pip install --no-cache-dir pwntools && \
4747 ${TOOLS_DIR}/venv/bin/pip install --no-cache-dir capstone mtp
4848
49- # Install user-specific tools
50- RUN aria2c -q -d ${TOOLS_DIR} -o stegsolve.jar http://www.caesum.com/handbook/Stegsolve.jar || \
51- wget -O ${TOOLS_DIR}/stegsolve.jar http://www.caesum.com/handbook/Stegsolve.jar && \
52- chmod +x ${TOOLS_DIR}/stegsolve.jar
5349
5450RUN git clone --depth=1 https://github.com/openwall/john -b bleeding-jumbo ${TOOLS_DIR}/john && \
5551 cd ${TOOLS_DIR}/john/src && ./configure && make -s clean && make -sj"$(nproc)"
5652
5753RUN git clone --depth=1 https://github.com/pwndbg/pwndbg ${TOOLS_DIR}/pwndbg && \
5854 cd ${TOOLS_DIR}/pwndbg && ./setup.sh
55+
5956
6057# Final setup
6158USER root
6259RUN rm -f /tmp/setup*.sh
6360COPY --chown=vscode:vscode setup.sh setup-advanced.sh setup-fallback.sh /home/vscode/.devcontainer/
6461RUN mkdir -p /workspaces && chown -R vscode:vscode /workspaces
6562
66- # Activate venv by default for vscode user
67- RUN echo 'source ${TOOLS_DIR}/venv/bin/activate' >> /home/vscode/.bashrc
63+ # Activate venv by default for vscode user and create john alias
64+ RUN echo 'source ${TOOLS_DIR}/venv/bin/activate' >> /home/vscode/.bashrc && \
65+ echo 'alias john="${TOOLS_DIR}/john/run/john"' >> /home/vscode/.bashrc
6866
6967# Expose useful ports
7068EXPOSE 8080 3000 5000
0 commit comments