Setup

In these notes I use pasteable code snippets with a number of shell variables to denote things that should be changed. I do that so that it's quick to run commands, but if you don't have the shell variables set, it takes a while to change them for each pastable snippet. The below section describe how to set up your pastable snippets.

Note that in some cases I will have to denote variables with <> with a description in the middle like <some_var_desc>

Kali (ZSH)

# Install general tools
sudo apt install pipx

# Set zshrc data
echo "\n# SixthCyber Notes Variables/Commands" >> ~/.zshrc
echo 'setvar(){ echo "export $1=\"$2\"" >> ~/.zshrc; source ~/.zshrc }' >> ~/.zshrc
echo 'read-setvar(){ read "val?$2"; echo "export $1=\"$val\"" >> ~/.zshrc; source ~/.zshrc }' >> ~/.zshrc
source ~/.zshrc
read-setvar PROJECT_DIR "Path to project directory (i.e /home/kali/pentest/Q1_2026): "
read-setvar TARGETS "Path to targets file (i.e $PROJECT_DIR/targets.txt): "

Last updated