Skip to content

Instantly share code, notes, and snippets.

@nullenc0de
Created January 27, 2021 15:06
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nullenc0de/b54f144ba562dead9c34a6293ecb2076 to your computer and use it in GitHub Desktop.
Save nullenc0de/b54f144ba562dead9c34a6293ecb2076 to your computer and use it in GitHub Desktop.
Script will look up company assets and search them on greynoise.
cat cust.txt |assetfinder -subs-only | filter-resolved -c 100 | while read resolved; do host -t A "$resolved" | awk '{print $NF}' | grep -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'; done |sort -u |while read ip; do greynoise quick $ip ; done |grep -v "NOT" |cut -d ' ' -f1 |greynoise ip |sed -e '/malicious/,/rDNS/!d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment