Skip to content

Instantly share code, notes, and snippets.

@etiennetremel
Created March 10, 2016 09:06
Show Gist options
  • Save etiennetremel/c6fe992c25eb2b9d4229 to your computer and use it in GitHub Desktop.
Save etiennetremel/c6fe992c25eb2b9d4229 to your computer and use it in GitHub Desktop.
Useful commands
# Get all IPs, count
grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' ./**/*.json | sort | uniq -c | sort -nr > ips.txt
# Whois on each ips
cat ips.txt | awk '{print $2}' | head -n 50 | xargs -n1 whois
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment