repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
pentesting.test.zshShell19 lines1.3 KiBraw download
# ── pentesting.zsh : lazy wrappers + toolkit dispatch ────────────────────────
assert_ok "pentest entrypoint defined" zsh -ic 'source $DOTFILES/config/pentesting.zsh; typeset -f pentest >/dev/null'
assert_ok "pentest-tools.zsh parses"   zsh -n "$DOTFILES/config/pentest-tools.zsh"
# pentest-mac.zsh is macOS-only and is not installed on Linux, so assert it
# parses only where it exists rather than failing the suite for being absent.
[[ -r "$DOTFILES/config/pentest-mac.zsh" ]] &&
  assert_ok "pentest-mac.zsh parses"   zsh -n "$DOTFILES/config/pentest-mac.zsh"

# wrapper exists for a toolkit command at boot, but toolkit is NOT yet loaded
assert_ok "wrapper installed for qscan" zsh -ic 'source $DOTFILES/.zshrc 2>/dev/null; typeset -f qscan >/dev/null'
assert_eq "tools not loaded at boot" "" "$(zboot 'print -r -- $_PENTEST_TOOLS_LOADED')"

# the sqlite tracker (creds/flags/htb-newbox) was removed: htbbox replaces it
assert_ok "sqlite tracker gone" zsh -ic 'source $DOTFILES/.zshrc 2>/dev/null; ! whence -w htb-newbox >/dev/null'

# calling a toolkit command (even redirected) loads the toolkit and dispatches;
# afterwards a different toolkit fn (revshell) is fully defined.
assert_eq "lazy wrapper loads toolkit" "LOADED" \
  "$(zboot 'htb-wordlists >/dev/null 2>&1; typeset -f revshell >/dev/null && print LOADED')"