Created
December 2, 2016 16:04
-
-
Save ccammilleri/fc31c052fd4c68aa3c1c779555b71078 to your computer and use it in GitHub Desktop.
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
#! /bin/bash | |
while read line;do | |
echo "====" | |
echo "Source IP: $line" | |
whois $line | egrep "(contact\:Company|descr)" | |
done < <(awk '{print $1}' /var/log/apache2/access.log | sort -u) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment