repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
recon.mdMarkdown67 lines4.8 KiBsource raw download

recon — find the ports, name the services#

Two-stage doctrine: rustscan sprays all 65535 ports in seconds, hands the open ones to nmap for the slow deep scan. Set t <ip> once and most wrappers default to it. Full rs* list: rshelp. Underlying tools: cheat overview for the stack.

Set the target first#

Sweep & knock#

Scan fast — rustscan (native system binary)#

rustscan resolves to the system package at /usr/bin/rustscan. Everything after -- is handed to nmap.

flag meaning
-a <ip> address / CIDR / comma-list (the rs* funcs fill this from $1)
-b <n> batch size — open sockets at once. Higher = faster + louder
-t <ms> per-port timeout. Raise it on laggy VPN/WAN
--range 1-65535 / --top explicit port range / nmap top-1000
--udp UDP mode · -g greppable (ports only, skips nmap)
-- <nmap args> everything past -- runs as nmap on the found ports

The rs* family — grouped by intent#

All take <IP> as the first arg. This is a taste of each lane; run rshelp for the full ~60.

quick/full  rsquick   top-1000 default        rs100/rstop100  top 100 (-F)
            rs1000    nmap --top              rsall/rsfull    all 65535, -b 65535 -t 3000
service     rsversion -sV     rsservice -sV -sC     rsaggro -A     rsos -O
vuln        rsvuln    -sV --script vuln       rsvulners  CVE via vulners
            rssafevuln (vuln and safe)        rsdefault  -sC
web         rsweb  80,443,8000,8080,8443,8888 -sV -sC   rshttp http-enum   rshttps ssl-enum-ciphers
win/smb     rswin  135,139,445,3389,5985 -sV -sC   rssmb 139,445 smb-enum-shares   rsrdp 3389
db          rsdb   1433,3306,5432,5984,6379,9200,27017 -sV   rsmysql/rsmssql/rsmongo/rsredis
udp         rsudp  --udp     rsudp100 / rsudp1000     rsudpall  (very slow)
stealth     rsstealth Random+-sS    rssyn -sS   rsfin/rsnull/rsxmas  firewall-evasion probes
save        rssave <ip> [name] -oA   rspentest <ip> [name]  -A -sV -sC + safe/vuln scripts, -oA
grep/quiet  rsgrep -g   rssilent --no-banner -g     rsquiet --no-banner
tuning      rsfast -b 20000 (LAN)   rsslow -b 1000 -t 5000 (VPN)   rsaccurate low-false-neg
custom      rsports <ip> <ports>   rscustom <ip> <batch> <timeout>   rsnmap <ip> <nmap args>

Native nmap wrappers (no Docker)#

Enumerate a named service#

Raw fallbacks#

Workflow: t <ip> → rsall $TARGET (or fscan) to find ports → qscan/auto-enum to name services → per-service *-enum. rustscan finds, nmap fingerprints, auto-enum tells you where to dig next.