Created
March 10, 2016 09:06
-
-
Save etiennetremel/c6fe992c25eb2b9d4229 to your computer and use it in GitHub Desktop.
Useful commands
This file contains hidden or 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
# 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