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.
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 -versionHigh-signal aliases
| Alias | Expands to | Use |
|---|---|---|
t / f / c / h / n | pe target / flag / cred / host / note | Noun shortcuts. |
tl tu ts | target list / use / status | Scope navigation. |
fl cl hl nl | finding list commands | Review active-target data. |
box | htb-session | Open the target cockpit. |
htbvpn | pe vpn | VPN command family. |
pedoctor | pe doctor | Health audit. |
wordlists | change to $PE_WORDLIST_ROOT | Browse the sparse list set. |
serve | python3 -m http.server | Temporary 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 listThe 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
| Key | Action | Safety note |
|---|---|---|
| Ctrl-X t | fzf-switch active target. | Check the refreshed prompt. |
| Ctrl-X f | Insert a selected flag value. | Insertion does not execute. |
| Ctrl-X c | Insert a selected credential secret. | Screen and clipboard shoulder-surfing still matter. |
| Esc Esc | Prepend sudo. | Review the full line before Enter. |
Secret hygiene
- Begin a sensitive command with a literal space;
hist_ignore_spacekeeps it out of saved Zsh history. - NetExec wrappers run with
umask 077so newly created logs, screenshots and databases remain private. - Do not store passwords or tokens in
~/.config/zsh/local.zsh. tipmay copy an IP throughwl-copyorxclip. Clear the clipboard after copying secrets.catremains unaliased so pipelines are predictable; usebatfor 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.
No entry matches. Press Esc to reset.