Skip to content

Instantly share code, notes, and snippets.

@jas-
Created December 9, 2014 17:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jas-/4ace737ac9d813a9f5f8 to your computer and use it in GitHub Desktop.
Save jas-/4ace737ac9d813a9f5f8 to your computer and use it in GitHub Desktop.
Intel gathering for UFW logs
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