Nuclei Chain - Domain Names
Full recon chain from a domain list to a deduplicated ip,host CSV of
findings. Requires dnsx, httpx, nuclei (with templates), and jq.
- Reads from a domain list in
lists/ - Resolves DNS, saves to JSON output
- Plucks out hosts from JSON output with
jq - Runs
httpx, saves to JSON output - Pulls out URLs with
jq - Runs
nucleiwith templates in anuclei/folder, saves to JSON output - Pulls out host,ip from nuclei output
- Organizes it into
ip,hostCSV
Uses the now alias for timestamped output filenames.
cat lists/LIST-NAME.txt | dnsx -rl 25 -retry 5 -j -o dnsx-LIST-NAME.json -or | jq .host -r | httpx -nf -j -o httpx-dnsx-LIST-NAME.json | jq .url -r | nuclei -nh -t nuclei/ -j -o nucleiResult-LIST-NAME-$(now).json | jq "[.host,.ip]" | tr -d '\n' | tr ']' '\n' | tr -dc 'a-z0-9.:/,\n\-' | cut -d '/' -f 3- | tr ',' '\t' | awk '{print $2","$1}' | sort -n > affectedIPandDomain_$(now).csv