repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
htb-layout.shShell35 lines1.1 KiBraw download
#!/usr/bin/env bash
# HTB pentest tmux layout
# Creates: shell | listener | server | notes windows

BOX="${1:-htb}"
SESSION="htb-${BOX}"

# Don't create if session already exists
tmux has-session -t "$SESSION" 2>/dev/null && tmux attach -t "$SESSION" && exit 0

cd "$HOME/htb" 2>/dev/null

# Create session with main shell window
tmux new-session  -d -s "$SESSION" -n "shell" -x 220 -y 50

# Window 2: Split — top listener, bottom for quick commands
tmux new-window   -t "$SESSION" -n "listeners"
tmux split-window -t "$SESSION:listeners" -v -p 40

# Window 3: HTTP server
tmux new-window   -t "$SESSION" -n "server"
tmux send-keys    -t "$SESSION:server" "echo 'Run: serve 8000 ~/htb/tools/privesc'" Enter

# Window 4: Notes / recon output
tmux new-window   -t "$SESSION" -n "recon"

# Window 5: Docker / container
tmux new-window   -t "$SESSION" -n "docker"
tmux send-keys    -t "$SESSION:docker" "echo 'Run: htb-up'" Enter

# Focus shell window
tmux select-window -t "$SESSION:shell"
tmux send-keys     -t "$SESSION:shell" "cd ~/htb && pentest && echo '' && htb-status" Enter

tmux attach -t "$SESSION"