/spawnTerminatorLayout

Spawn custom Terminator layout when doing HackTheBox and more

Primary LanguageShellApache License 2.0Apache-2.0

spawnTerminatorLayout

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.

Pre-req

  1. Terminator is installed. If not:
$ sudo apt update
$ sudo apt install terminator

  1. Have a layout already created. If not, create a Terminator layout called "htb".
    For custom layout names, see: Modifying the script

  1. 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

Run script to create corresponding box directory and spawn your layout

Examples:

./spawnHTB.sh <some_box_name> 
./spawnHTB.sh <some_box_name> <box_ip>

Modifying the script

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.