Skip to content

Instantly share code, notes, and snippets.

View ph1ash's full-sized avatar

Matt D. ph1ash

  • California
View GitHub Profile
@ph1ash
ph1ash / fail2ban2geo.py
Last active August 10, 2018 04:40
Python3 script to geo-locate fail2ban logs and then JSONify the data. NOTE: Depends on the command 'geoiplookup'
#!/usr/bin/python3
import json
import subprocess
logFile = '/var/log/fail2ban.log'
banList = []
banListGeo = {}
with open(logFile) as f:

Keybase proof

I hereby claim:

  • I am ph1ash on github.
  • I am h3rm3s (https://keybase.io/h3rm3s) on keybase.
  • I have a public key ASAyN538dUBHGOYuYAK6ciQUbNiQafIqRTBZf2yVuK-mhAo

To claim this, I am signing this object: