Skip to content

Instantly share code, notes, and snippets.

@fedir
Last active October 9, 2018 14:14
Show Gist options
  • Save fedir/703db10ab05b93f996b4715ff45f7393 to your computer and use it in GitHub Desktop.
Save fedir/703db10ab05b93f996b4715ff45f7393 to your computer and use it in GitHub Desktop.
detectAtatcksInApache2Logs.sh
#!/bin/bash
cat /var/log/apache2/access.log |grep SELECT | awk '{print $1}' | sort -n | uniq -c | sort -nr | head -20
cat /var/log/apache2/access.log |grep SELECT | tail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment