In Hack The Box Pwnbox, there is a script ~/Desktop/my_data/user_init acting as a setup script for each spawned instance. My user_init installs and downloads the following things:
- Oh My Tmux (Tmux enhancement)
- Updog (Python HTTP server alternative)
- Pwncat (Post exploitation framework and better reverse shell)
- LinPEAS (Linux privilege escalation)
- pspy (Linux privilege escalation)
- LinEnum (Linux privilege escalation)
- Linux Exloit Suggester (Linux privilege escalation)
- Linux Priv Checker (Linux privilege escalation)
- WinPEAS (Windows privilege escalation)
- PowerUp (Windows privilege escalation)
- Windows Exploit Suggester (Windows privilege escalation)
Simply copy and paste the content of user_init to your ~/Desktop/my_data/user_init in Pwnbox and restart the machine. All these tools will be ready in the future when you spawn new instances of Pwnbox.