Created
January 27, 2021 15:06
-
-
Save nullenc0de/b54f144ba562dead9c34a6293ecb2076 to your computer and use it in GitHub Desktop.
Script will look up company assets and search them on greynoise.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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