Last active
June 11, 2025 12:26
-
-
Save whoo/1a64684be2233ade07f5001de2397eb4 to your computer and use it in GitHub Desktop.
Dockerfile.ctf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker build -t ihack . | |
| docker run -it --hostname igloo ihack zsh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM --platform=linux/amd64 debian | |
| RUN <<EOF | |
| ## Upgrade image | |
| apt -y update | |
| apt -y upgrade | |
| apt -y install build-essential python3 python3-pip libssl-dev file git zsh wget vim procps locales | |
| apt -y install qrencode pngcheck zbar-tools lolcat nmap | |
| EOF | |
| ENV LANG="en_US.UTF-8" | |
| ENV LC_ALL="en_US.UTF-8" | |
| RUN <<EOF | |
| ## Install package | |
| echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen | |
| locale-gen | |
| sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
| sed -e 's/robbyrussell/agnoster/g' -i /root/.zshrc | |
| mkdir -p /root/.config/pip | |
| cat > /root/.config/pip/pip.conf <<TT | |
| [global] | |
| break-system-packages = true | |
| TT | |
| # Install python Tool | |
| pip install requests pwntools pycryptodome | |
| ## Build John | |
| cd /root | |
| git clone https://github.com/openwall/john | |
| cd john/src | |
| ./configure | |
| make -j4 | |
| EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment