Skip to content

Instantly share code, notes, and snippets.

@FranklyFuzzy
Last active April 1, 2022 03:57
Show Gist options
  • Save FranklyFuzzy/57bdd1263020cecca4d5bc6960ff7d1d to your computer and use it in GitHub Desktop.
Save FranklyFuzzy/57bdd1263020cecca4d5bc6960ff7d1d to your computer and use it in GitHub Desktop.
This will allow you to feed multiple sites/urls to DNS recon. It can be further expanded to grep for successful zone transfers by throwing some grep successful after the probes.
#!/bin/bash
#https://github.com/FranklyFuzzy
FILE=$1
while read name
do
echo "dnsrecon being ran on $name"
python dnsrecon.py -d $name -t axfr -c output/$name-dns.csv
done < $FILE
#can add - echo "test $name" to confirm reading file by line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment