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
scripts [2013/03/11 14:15] cedricscripts [2013/03/11 14:32] (current) cedric
Line 4: Line 4:
 #! /bin/sh #! /bin/sh
  
-for ip in echo `awk '{print $NF}' /var/log/fail2ban.log | sort | uniq`+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.txt · Last modified: 2013/03/11 14:32 by cedric