A helper script to automatically spawn a retired Windows VM on Hack The Box, optimized for development, debugging, and tool testing.
The script uses Puppy as the default devbox VM and leverages htbcli (https://github.com/thekeen01/htbcli) for interaction with the HTB platform.
Once the VM is created, it automatically:
- Enables RDP
- Maps the current working directory as a
TSClientshare - Connects via RDP automatically
- (Optional) Stops or starts a specific VM depending on your choices
- A Hack The Box subscription that allows generating retired machines
- A valid
HTB_API_TOKENgenerated at - https://app.hackthebox.com/profile/settings - xfreerdp
git clone https://github.com/b5null/htb_devbox
cd htb_devbox
chmod +x gendev.sh
./gendev.shDon't forget to stop the instance once you are done! You will need to declare the HTB_API_TOKEN token to perform this
python3 htbcli.py stop --machine puppy
Add the stop interaction once done with using the box.