repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
xss-scan.mdMarkdown60 lines4.1 KiBsource raw download

xss-scan — reflected & blind XSS, one command#

End-to-end pipeline: harvest URLs → gf xss candidates → Gxss reflection filter → dalfox confirm. The web-recon sibling to sqli-test (sqlmap) and enum-web/webenum (dir brute). Point it at a URL, a host, or a file of URLs and walk away.

Run it#

Input type is auto-detected — you never say which. Needs dalfox and gf present or it bails; katana/gau/waybackurls/Gxss/qsreplace/xsstrike are each optional and skipped if absent.

Options#

Flag Meaning
-b <url> / --blind blind-XSS callback (XSS Hunter / your listener) → passed to dalfox -b
--oob dalfox built-in interactsh OOB blind XSS (--blind-oob) — no listener to run
--deep also run XSStrike on the top 15 reflected candidates (slow, loud)
--workers N / -w N concurrency for Gxss + dalfox (default 30)

The 4 stages (what it prints)#

[1/4] URL HARVEST      katana crawl (+gau/waybackurls) → urls.txt
[2/4] CANDIDATE PARAMS grep '?…=' + gf xss, then qsreplace -a → candidates.txt
[3/4] REFLECTION FILTER Gxss -c <workers> keeps only params that echo → reflected.txt
[4/4] DALFOX CONFIRM   dalfox pipe --silence --workers N -o dalfox.txt < reflected.txt

Output — $HTB_BOXES/scans/xss-<target>/#

Target name is slugged (: / → _), so https://host/x lands in scans/xss-https_host_x/.

Manual chain (raw one-liner)#

When you want to see the plumbing or tweak a stage — the wrapper is exactly this, minus the bookkeeping:

gau target.com | gf xss | qsreplace -a | Gxss -c 50 | dalfox pipe --blind-oob --workers 50

Companions (reach for these around it)#

Start narrow: xss-scan https://host/path?param=x on a single known sink confirms the pipeline fast. Widen to the bare host only once you know it reflects — a full katana+gau crawl on a big app is slow and loud. Blind hits need a callback you can watch (--oob or -b), so set that up before the run, not after.