Tired of splitting Terminator's terminals every time and typing all the commands manually? Spawn your saved layout and new directories for pentesting or HackTheBox with this one simple trick! (Aight I'll stop). You can preset multiple tabs and custom commands for Terminator then use this script to spawn all of them automatically.
- Terminator is installed. If not:
$ sudo apt update
$ sudo apt install terminator
- Have a layout already created. If not, create a Terminator layout called "htb".
For custom layout names, see: Modifying the script
- Creat a .zshenv file at current user's home directory (~/). If you are using ZSH, you can skip this step.
# create a .zshenv file at home if you don't have one
$ touch ~/.zshenv
Examples:
./spawnHTB.sh <some_box_name>
./spawnHTB.sh <some_box_name> <box_ip>
Ln 36
terminator -l htb
Change "htb" to the name of your layout.
Ln 24
boxDir="$HOME/HTB/$boxName"
Change it to your own path.