Skip to content

Instantly share code, notes, and snippets.

@Ignition
Created April 12, 2011 16:23
Show Gist options
  • Save Ignition/915833 to your computer and use it in GitHub Desktop.
Save Ignition/915833 to your computer and use it in GitHub Desktop.
Blog-p1-i1
Failed password
Did not receive identification string
#!/bin/sh
zcat -f /var/log/auth.log* | grep -Ehf bad-phrases | grep -Eho '([0-9]{1,3}\.){3}[0-9]{1,3}' | sort -n | uniq | grep -vf white-list
Accepted publickey
Accepted password
#!/bin/sh
zcat -f /var/log/auth.log* | grep -Ehf entry-phrases | grep -Eho '([0-9]{1,3}\.){3}[0-9]{1,3}' | sort -n | uniq | grep -vf white-list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment