Module 04 // operator interface

Zsh + terminal.

The shell glues the encrypted target model, isolated toolchains, route guards and tmux workspace into a fast keyboard-first interface.

AlacrittyZshfzfRose Pine
Authorized labs only. Confirm the scope, target and route before active testing. Examples use placeholders; replace them only with values from your permitted lab.

Tool path and identity

The managed order is ~/go/bin, ~/.cargo/bin, ~/.local/bin, then the system path. This makes ProjectDiscovery's Go httpx win over the unrelated Python command.

type -a httpx
command -v ffuf feroxbuster nxc
httpx -version
nuclei -version

High-signal aliases

AliasExpands toUse
t / f / c / h / npe target / flag / cred / host / noteNoun shortcuts.
tl tu tstarget list / use / statusScope navigation.
fl cl hl nlfinding list commandsReview active-target data.
boxhtb-sessionOpen the target cockpit.
htbvpnpe vpnVPN command family.
pedoctorpe doctorHealth audit.
wordlistschange to $PE_WORDLIST_ROOTBrowse the sparse list set.
servepython3 -m http.serverTemporary current-directory HTTP server.

Workflow helpers

tip                         # print active IP; copy when possible
useip                       # export IP and RHOST
newbox NAME IP [platform]    # register + private work tree
scan [IP]                   # service/version Nmap set
fullscan [IP]               # all TCP ports
udpquick [IP]               # top 100 UDP ports, sudo
webenum 'http://HOST/FUZZ'   # ffuf with curated list

The four active helpers check the kernel route. To use them in another explicitly authorized non-VPN lab, opt out for that one invocation: PE_ALLOW_NO_VPN=1 scan 192.0.2.10.

Interactive widgets

KeyActionSafety note
Ctrl-X tfzf-switch active target.Check the refreshed prompt.
Ctrl-X fInsert a selected flag value.Insertion does not execute.
Ctrl-X cInsert a selected credential secret.Screen and clipboard shoulder-surfing still matter.
Esc EscPrepend sudo.Review the full line before Enter.

Secret hygiene

  • Begin a sensitive command with a literal space; hist_ignore_space keeps it out of saved Zsh history.
  • NetExec wrappers run with umask 077 so newly created logs, screenshots and databases remain private.
  • Do not store passwords or tokens in ~/.config/zsh/local.zsh.
  • tip may copy an IP through wl-copy or xclip. Clear the clipboard after copying secrets.
  • cat remains unaliased so pipelines are predictable; use bat for presentation.

Safe customization

Personal shell overrides belong in ~/.config/zsh/local.zsh; tmux overrides belong in ~/.config/tmux/local.conf. Managed files can then be upgraded without overwriting personal choices.

# ~/.config/zsh/local.zsh
export EDITOR=nvim
alias labnotes='$EDITOR "$PE_WORKROOT/notes.md"'

Alacritty is the preferred desktop terminal. GNOME binds Super+Enter to a terminal and Super+Shift+H to the HTB workspace launcher.