Skip to content

Instantly share code, notes, and snippets.

@nevans
Created March 12, 2010 18:40
Show Gist options
  • Save nevans/330605 to your computer and use it in GitHub Desktop.
Save nevans/330605 to your computer and use it in GitHub Desktop.
what IPs are trying to hack my server
sudo last -i -f /var/log/btmp |
awk '{ per[$3] += 1 } END { for (i in per) print per[i], i }' |
sort -n |
tail -15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment