SHARE
TWEET

logbot.sh

a guest Mar 5th, 2013 23 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cat /var/log/auth.log | grep Failed | awk '{print $6,$7,$8,$9,$10,$11}' | cut -d: -f1 | sort | uniq -c | sort -n | cut -d : -f1 >> /home/logban/Authlog
  2.  
  3. cat /var/log/auth.log | grep reverse | awk '{print $6,$7,$8,$9,$10,$11}' | cut -d: -f1 | sort | uniq -c | sort -n | cut -d : -f1 >> /home/logban/Authlog
  4.  
  5. cat /var/log/auth.log | grep Invalid | awk '{print $6,$7,$8,$9,$10,$11}' | cut -d: -f1 | sort | uniq -c | sort -n | cut -d : -f1 >> /home/logban/Authlog
  6.  
  7. cat /var/log/auth.log | grep Did | awk '{print $6,$7,$8,$9,$10,$11,$12}' | cut -d: -f1 | sort | uniq -c | sort -n | cut -d : -f1 >> /home/logban/Authlog
  8.  
  9. cat /var/log/auth.log | grep Address | awk '{print $6,$7,$8,$9,$10,$11}' | cut -d: -f1 | sort | uniq -c | sort -n | cut -d : -f1 >> /home/logban/Authlog
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top