Setup
Kali (ZSH)
sudo apt update && sudo apt install pipx moreutils -yecho "\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): "cat <<'EOF' >> ~/.zshrc
# --- Auto-Logging Configuration ---
if [ -z "$SCRIPT_LOGGING" ]; then
export SCRIPT_LOGGING="true"
LOG_DIR="$HOME/terminal-logs"
LOG_FILE="$LOG_DIR/session-$(date -u +%Y%m%d-%H%M%S).log"
mkdir -p "$LOG_DIR"
echo -e " ℹ \033[90;3mSession recording started. Log: $LOG_FILE\033[0m"
exec script -q -f >(TZ=UTC ts '%Y-%m-%d %H:%M:%SZ' > "$LOG_FILE")
fi
# ----------------------------------
EOFLast updated