Window 1 · recon
A three-pane layout rooted in the target directory. Use it for a main scan, service follow-up and lightweight monitoring.
Module 01 // session control
One target, one named session, three predictable work surfaces. Everything is plugin-free, true-color, mouse-aware and designed not to persist secret-bearing process state.
htb-session reads the active target, sanitizes its name, and creates a tmux session called htb-<target>. It attaches from a normal terminal or switches clients when already inside tmux.
pe target use keeper
htb-session
# equivalent: select while launching
pe session keeper
A three-pane layout rooted in the target directory. Use it for a main scan, service follow-up and lightweight monitoring.
A clean interactive Zsh window in the same target root for enumeration and tool work.
Opens notes/notes.md in $EDITOR. The file remains local to the target workspace.
nmap/, scans/, loot/, web/, exploit/ and notes/ are created with a private root.
| Keys | Action | Note |
|---|---|---|
| Ctrl-b | Primary prefix | The tmux default remains available. |
| Ctrl-a | Secondary prefix | Screen-style alternative; follow it with the binding key. |
| prefix Ctrl-a | Send literal secondary prefix | Useful when a nested program consumes it. |
| prefix r | Reload ~/.tmux.conf | Displays a confirmation message. |
| prefix ? | Show all tmux key bindings | Built-in tmux help; press q to leave. |
| Keys | Action | Detail |
|---|---|---|
| prefix | | Split side by side | New pane inherits the current working directory. |
| prefix - | Split top and bottom | New pane inherits the current working directory. |
| prefix h j k l | Move left, down, up, right | Vim-style pane movement. |
| Alt-← Alt-↓ Alt-↑ Alt-→ | Move without prefix | Fast navigation from a normal shell prompt. |
| prefix H J K L | Resize by five cells | Repeatable while the key table remains active. |
| prefix Ctrl-s | Toggle synchronized panes | Every keystroke goes to every pane in the window. The status message shows on/off. |
| prefix z | Zoom current pane | Built-in binding; press again to restore the layout. |
| prefix x | Kill current pane | Built-in confirmation. Check for foreground jobs first. |
| Keys / command | Action | Detail |
|---|---|---|
| prefix c | New window | Starts in the current pane path. |
| prefix , | Rename window | Useful for service-specific work such as smb or web. |
| prefix n / p | Next / previous window | Built-in cycle. |
| prefix 1…9 | Select window number | Window and pane indexes start at 1. |
| prefix w | Interactive tree | Browse sessions, windows and panes. |
| prefix d | Detach | The tmux server and its processes keep running in memory. |
tmux ls | List sessions | Use before attaching to avoid duplicate workspaces. |
tmux attach -t htb-keeper | Attach by name | htb-session is normally easier and safer. |
Runs ~/.local/bin/htb-session. It switches to or creates the session for the currently active pe target.
Creates a window named vpn and runs pe vpn up in the foreground. Stop it with Ctrl+C.
The right side of the status bar shows a VPN indicator when a tun, tap or wg interface exists, plus the active target and clock. An indicator proves an interface exists—not that a specific target is routed through it. Verify with pe vpn route "$IP".
| Keys | Action |
|---|---|
| prefix [ | Enter vi copy mode. |
| h j k l | Move inside copy mode; Ctrl-u/Ctrl-d move by half pages. |
| / then text | Search backward through pane history; n repeats. |
| v | Begin selection. |
| y or Enter | Copy selection and exit through tmux/OSC52. |
| q | Exit without copying. |
Tmux keeps up to 100,000 lines per pane in memory. Copy mode deliberately controls the external clipboard; pane applications cannot silently set it through tmux. Clear copied credentials after use.
htb-session instead of creating another one manually.tmux show-messages; validate the active terminal with tmux display -p '#{client_termname}'.tmux kill-session -t htb-name only after saving work. Avoid tmux kill-server unless you intend to terminate every session.~/.config/tmux/local.conf; it is loaded quietly after the managed config.No binding or section matches that filter. Press Esc to reset.