Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save virtualminds/52a34ccf3cefcd4c315a7289f0506ba5 to your computer and use it in GitHub Desktop.
Save virtualminds/52a34ccf3cefcd4c315a7289f0506ba5 to your computer and use it in GitHub Desktop.
Clean "fake" resolvers from massdns resolver list
./scripts/subbrute.py lists/names_small.txt LASDFALSKJDFLKAJSDLFKJALKSDFJLKAJD.COM | ./massdns -r lists/resolvers.txt -t A -o Snqr -w results.txt
for i in $(grep -Ev 'NXDOMAIN' results.txt | grep -v ' A ' | cut -d':' -f 1 | sort -u); do sed -i -e "/$i/d" lists/resolvers.txt; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment