CryptoHack Docker Container

A Jupyter notebook environment built for attacking crypto CTF challenges, with custom theming matching CryptoHack.

It comes with the following installed and integrated:

  • Sage 10 (based on Python3)
  • Pwntools
  • PyCryptodome
  • z3 Prover

Installation

Build

cd cryptohack-docker
docker build . -t cryptohack

Run

Open terminal in root folder CTF

docker run --name CTF-Crypto --restart always -p 8888:8888 -v .:/home/sage/ctf-challenges -it cryptohack

Alt text

Alt text

VS Code

Alt text

Alt text

Alt text

Alt text

Alt text

~/sage/local/var/lib/sage/venv-python3.11.1/bin/python3.11 Alt text

Bad

  • Can't use with libs using image, screenshot like pyzbar, PIL,...

Refer: