Skip to content

Instantly share code, notes, and snippets.

@ayuxsec
Created February 16, 2026 21:28
Show Gist options
  • Select an option

  • Save ayuxsec/a395d58c56aff789d2d11bf2493c6606 to your computer and use it in GitHub Desktop.

Select an option

Save ayuxsec/a395d58c56aff789d2d11bf2493c6606 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo -s
docker pull ubuntu:22.04
docker run -it \
--name hackbox-build \
ubuntu:22.04 \
/bin/bash
apt update
mkdir -p /opt/tools
cd /opt/tools
curl https://raw.githubusercontent.com/ayuxsec/spike/refs/heads/main/scripts/deps/pd_tools_installer.sh | bash
rm /var/log/installer.log
apt clean
rm -rf /var/lib/apt/lists/*
history -c
exit
docker commit hackbox-build hackbox:manual
docker run -it hackbox:manual /bin/bash
docker rm hackbox-build
# add more tools
docker run -it \
--name hackbox-update \
hackbox:manual \
/bin/bash
docker commit hackbox-update hackbox:manual-v2
docker tag hackbox:manual-v2 hackbox:latest
docker rm hackbox-update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment