66.98.152.61 - - [24/Jan/2005:10:54:07 -0800] "GET /forums/viewtopic.php?p=911&highlight=%2527%252Esystem(chr(112)%252Echr(101)%252Echr(114)%252Echr(108)%252Echr(32)%252Echr(45)
%252Echr(101)%252Echr(32)%252Echr(34)%252Echr(112)%252Echr(114)%252Echr(105)%252Echr(110)%252Echr(116)%252Echr(32)
%252Echr(113)%252Echr(40)%252Echr(106)%252Echr(83)%252Echr(86)%252Echr(111)%252Echr(119)%252Echr(77)%252Echr(115)%252Echr(100)
%252Echr(41)%252Echr(34))%252E%2527 HTTP/1.0" 200 38987 "-" "Mozilla/4.0"
function blocker()
{
if (preg_match('#' . preg_quote('system(chr(99)') . '¦' . preg_quote('wget') . '#', $_SERVER['REQUEST_URI'])) {
$check = 1;
}
if (preg_match('#' . preg_quote('lwp-trivial') . '¦' . preg_quote('LWP::Simple') . '#', getenv('HTTP_USER_AGENT'))) {
$check = 1;
}
if (isset($check)) {
header('HTTP/1.0 403 Forbidden', true);
header('Location: http://' . $_SERVER['REMOTE_HOST'] . $_SERVER['REQUEST_URI']);
exit;
}
}
SetEnvIfNoCase User-Agent "^LWP::Simple" bad_bot
SetEnvIfNoCase User-Agent "^lwp-trivial" bad_bot
SetEnvIfNoCase User-Agent "^lwp-trivial/1.46" bad_bot
SetEnvIfNoCase User-Agent "^lwp-trivial/1.45" bad_bot
SetEnvIfNoCase User-Agent "^lwp-trivial/1.44" bad_bot
SetEnvIfNoCase User-Agent "^lwp-trivial/1.43" bad_bot
SetEnvIfNoCase User-Agent "^lwp-trivial/1.42" bad_bot
SetEnvIfNoCase User-Agent "^lwp-trivial/1.41" bad_bot
SetEnvIfNoCase User-Agent "^lwp-trivial/1.40" bad_bot
SetEnvIfNoCase User-Agent "^lwp-trivial/1.39" bad_bot
SetEnvIfNoCase User-Agent "^lwp-trivial/1.38" bad_bot
SetEnvIfNoCase User-Agent "^lwp-trivial/1.37" bad_bot
SetEnvIfNoCase User-Agent "^lwp-trivial/1.36" bad_bot
SetEnvIfNoCase User-Agent "^lwp-trivial/1.35" bad_bot
SetEnvIfNoCase User-Agent "^lwp-trivial/1.34" bad_bot
SetEnvIfNoCase User-Agent "^lwp-trivial/1.33" bad_bot
<Directory "/">
Order Allow,Deny
Allow from all
Deny from env=bad_bot
</Directory>
fearless_fred wrote:It's all attempts by the Santy worm. It shouldn't be able to get in as long as all your files are up to date. Check this thread for stuff you can do to keep the worm from creating too much traffic:
http://www.phpbb.com/phpBB/viewtopic.php?t=249010
Hope that helps!
S
sr123 wrote:I think this is probably a flare-up for sure. I'm wondering how isolated it is. In your own case, are you getting way more of these than you did of the original Santy variants?
for IP in `cat my_apache_httpd_log_file | grep 'highlight=%2527' | awk '{print $1}' | sort -u`; do /sbin/iptables -I INPUT -s $IP -j DROP; echo "${IP} dropped"; done
cat my_apache_httpd_log_file | grep 'highlight=%2527' | less
Allie Mae wrote:I am also under attack. But .htaccess seems to be working.
Users browsing this forum: No registered users and 9 guests