Skip to content

Instantly share code, notes, and snippets.

@fjfish
Created June 23, 2016 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fjfish/8ba19d6da7562df1ce3071053271fb00 to your computer and use it in GitHub Desktop.
Save fjfish/8ba19d6da7562df1ce3071053271fb00 to your computer and use it in GitHub Desktop.
Find bots plaguing your apache installation
#! /bin/bash
# Get info xmrpc get the ip sort count sort for humans
cat /var/log/apache2/*log | grep xmlrpc | awk '{ print $1 '} | sort | uniq -c | sort -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment