Changes

Jump to navigation Jump to search
226 bytes added ,  14:05, 17 January 2018
one-liner for checking for wp-login posts
<source lang="bash">
for x in `apachectl -S 2>&1 | awk '/default server / { g=$3; print g} /namevhost / { g=$4; print g } /alias/ { g=$2; print g }' | sort -u`; do echo "checking $x"; curl --head --location http://$x; done
</source>
 
Who are the zombies trying to crack your WordPress site?
<source lang="awk">
awk '$6 ~ "POST" && $7 ~ "wp-login" { ips[$1]++ } END {for (ip in ips) { print ip, " ", ips[ip], " POSTs" }}' /var/log/apache2/access.log
</source>
4,558

edits

Navigation menu