User Tools

Site Tools


scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
scripts [2013/03/11 13:43] cedricscripts [2013/03/11 14:32] (current) cedric
Line 4: Line 4:
 #! /bin/sh #! /bin/sh
  
-for ip in echo `grep -i unban /var/log/fail2ban.log | awk '{print $NF}'`+for ip in echo `grep Ban /var/log/fail2ban.log | awk '{print $NF}' | sort | uniq`
 do do
     for email in `whois $ip | perl -wne'while(/[\w\.\-]+@[\w\.\-]+\w+/g){print "$&\n"}' | sort | uniq`     for email in `whois $ip | perl -wne'while(/[\w\.\-]+@[\w\.\-]+\w+/g){print "$&\n"}' | sort | uniq`
scripts.1363005820.txt.gz · Last modified: 2013/03/11 13:43 by cedric