Raspi Hackbox is a Debian-based Raspberry Pi image that transforms your Pi into a portable hacking lab.
It comes preloaded with:
- A lightweight i3 desktop environment
- zsh shell for productivity
- A curated set of offensive security tools
The toolkit is tailored for IoT, OT, and automotive hacking, making it ideal for pentesters, researchers, and enthusiasts who want a ready-to-go hacking environment.
Beyond the i3 + zsh desktop, the image bundles a curated offensive-security toolkit:
| Category | Tools |
|---|---|
| Radio & SDR | GNU Radio, Gqrx, HackRF, RTL-SDR, rtl_433, Universal Radio Hacker (URH) |
| Wi-Fi & Bluetooth | Kismet, Aircrack-ng, Wifite, bettercap, hostapd, dnsmasq, BlueZ, rtl8812au monitor/injection driver |
| RFID / NFC | Proxmark3 |
| Automotive & hardware | can-utils, python-can, OpenOCD, UrJTAG, flashrom, dfu-util, Arduino IDE |
| Reverse engineering & firmware | radare2, binwalk |
| Forensics | Volatility 3, The Sleuth Kit, Guymager |
| Network, web & cracking | Nmap, Wireshark, dirb, Hydra, Hashcat, John the Ripper, Scapy |
Clone this repository:
git clone --recursive https://github.com/w1ld3r/Raspi_Hackbox
cd Raspi_HackboxMake sure you are running Debian Trixie (13) or higher. Install the required packages:
sudo apt install -y \
vmdb2 dosfstools qemu-utils qemu-user-static debootstrap \
binfmt-support time kpartx bmap-tools python3 ansible-core \
fakemachineInstall Ansible collections:
ansible-galaxy collection install community.general👉 If debootstrap fails with an exec format error, try:
sudo dpkg-reconfigure qemu-user-staticThis re-registers the format handler with binfmt-support.
This repo includes a build recipe: rpi4_trixie.yaml, which defines the preinstalled environment and hacking tools.
A Makefile automates the build:
sudo make rpi4_trixie.img- Uses
vmdb2+ansibleunder the hood - Can run unprivileged if
fakemachineis available - Requires
sudootherwise
📖 vmdb2 documentation for more details.
If you prefer Docker, ensure your container has at least:
- 8 GB RAM
- 60 GB disk space
Install required packages (Docker Engine with the Compose v2 plugin):
sudo apt install -y binfmt-support qemu-system-common qemu-user-static docker.io docker-compose-v2Build and run the container (it runs make rpi4_trixie.img inside a privileged
container — privileged and the /dev mount are required by vmdb2):
sudo docker compose up --buildThe image is written to the repository directory (mounted into the container).
Insert your SD card (
bmaptool copy rpi4_trixie.img.xz /dev/sdbxzcat rpi4_trixie.img.xz | dd of=/dev/sdb bs=64k oflag=dsync status=progressdd if=rpi4_trixie.img of=/dev/sdb bs=64k oflag=dsync status=progressThe image contains:
- Partition 1 →
RASPIFIRM(boot firmware + kernel) - Partition 2 →
RASPIROOT(Debian system)
You should expand the root partition and create a swap partition
sudo parted /dev/sdb
(parted) help
(parted) print
(parted) mkpart primary linux-swap -4096 -0
(parted) resizepart 2 -4096
(parted) quit
sudo mkswap -L RASPSWAP /dev/sdb3
sudo e2fsck -f /dev/sdb2
sudo resize2fs /dev/sdb2Swap is already configured in /etc/fstab. Verify with:
free -h- Default hostname:
rpi4-YYYYMMDD - Default user:
user - Default password:
user
Insert the SD card, power up your Pi, and you’re ready to go.
⚠️ Security: the image ships with a well-known default password (user) for an account withsudo, and the SSH server is enabled. Before connecting the Pi to any untrusted network, log in on the console and change the password immediately (passwd), or disable SSH password authentication and switch to key-based login.
⚡ Hack responsibly — with great power comes great responsibility.