Created
December 9, 2014 17:04
-
-
Save jas-/4ace737ac9d813a9f5f8 to your computer and use it in GitHub Desktop.
Intel gathering for UFW logs
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
dmesg | awk '{split($7, arr, "="); if (match(arr[2], /[0-9.]/)){print "\nHOST: " arr[2] " ================\n";system("host " arr[2]);system("whois " arr[2]);system("dig " arr[2]);}}' > log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment