Skip to content

Instantly share code, notes, and snippets.

@mentix02
Created September 9, 2025 16:00
Show Gist options
  • Select an option

  • Save mentix02/3b4175279bd26c28b9d2f833ee960c9d to your computer and use it in GitHub Desktop.

Select an option

Save mentix02/3b4175279bd26c28b9d2f833ee960c9d to your computer and use it in GitHub Desktop.
A portable kali Docker setup
FROM kalilinux/kali-rolling
# Avoid interactive prompts during install
ENV DEBIAN_FRONTEND=noninteractive
# Update + install common CTF tools
RUN apt-get update && apt-get install -y \
kali-tools-top10 \
kali-tools-web \
kali-tools-wireless \
kali-tools-passwords \
kali-tools-exploitation \
kali-tools-forensics \
kali-tools-reverse-engineering \
kali-tools-social-engineering \
netcat-traditional \
curl wget git vim tmux python3 python3-pip \
&& apt-get clean
# Default workdir inside container
WORKDIR /root/kalivol
build:
mkdir -p ~/Desktop/VMs/kalivol
docker build -t kali-ctf .
run:
mkdir -p ~/Desktop/VMs/kalivol
docker run -it --name kaliCTF -v ~/Desktop/VMs/kalivol:/root/kalivol kali-ctf bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment