Skip to content

Instantly share code, notes, and snippets.

View ph1ash's full-sized avatar

Matt D. ph1ash

  • California
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ph1ash on github.
  • I am h3rm3s ( on keybase.
  • I have a public key ASAyN538dUBHGOYuYAK6ciQUbNiQafIqRTBZf2yVuK-mhAo

To claim this, I am signing this object:

ph1ash /
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'
import json
import subprocess
logFile = '/var/log/fail2ban.log'
banList = []
banListGeo = {}
with open(logFile) as f: