Skip to content

Instantly share code, notes, and snippets.

@aaronky
Created June 1, 2011 22:55
Show Gist options
  • Select an option

  • Save aaronky/1003549 to your computer and use it in GitHub Desktop.

Select an option

Save aaronky/1003549 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/bash
# AUTHOR: aaron@fisix.net
# FILE: /usr/home/aaron/lulz/locate_kids.bash
# CREATED: 15:50:28 01/06/2011
# MODIFIED: 15:55:05 01/06/2011
# yeah loops are kewl. geoiplookup on pf bruteforce table.
# note add 'pfctl -t bruteforce -T show' to sudoers w/o passwd.
for IP in `sudo pfctl -t bruteforce -T show`;
do
echo $IP `geoiplookup $IP `
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment