Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[TuT] Exploiting Microsoft/IIS 6.0 WebDAV - Uploading Files.

Today I will be teaching a way to exploit very common a vulnerability and upload your shell and/or deface page to a Microsoft IIS 6.0 based website.

What you will need:
A windows machine.
Basic knowledge of shells.
A Microsoft/IIS 6.0 website with WebDAV enabled.
An ASP shell. - http://www.#/?d=YU209ET7 << Download link for the shell. (Do not even try a PHP shell, it won't work. You can use your ASP shell to upload your PHP shell after though.)


This is how to perform the exploit in Windows 7:
Click start > Computer.
You will see this page: http://img851.imageshack.us/i/iis1.png/[/img]

Next you will want to click "Map network drive", it has been circled in the picture above.
Now a window will pop-up, it should look like this: http://img638.imageshack.us/i/iis2.png/

As you can see again. I have circled what needs to be clicked. So click on that then a window will come up asking you to click "Next", do so. After you have clicked the "Next" button, you should see this: http://img850.imageshack.us/i/iis3.png/

You will need to highlight/click that folder I circled, then hit the "Next" button once again. It should redirect you to this page: http://img21.imageshack.us/i/iis4.png/[/img]

I put "www.vulnerablesite.com" as an example. You have to type in "http://vulnerablesite.com" otherwise it will not work. It requires HTTP, not WWW. You will receive an error unless you use HTTP (once again, http://vulnerablesite.com)
Hit the "Next" button again, then it should come up with the site name with the output "vulnerablesite.com", you can name it whatever you like, this is what I put: http://img130.imageshack.us/i/iis5.png/

Except I changed it to "IIS 6.0 Exploit for HF - Phizo".
It doesn't matter what you put, just make sure you remember it.
Make sure the box is ticked (open when finished) then go ahead and hit finish.
Okay, we've exploited the website. Now we want to upload our files to the website. A new window has just opened, as you can see, we're connected to the websites files, however we're not aloud to view the files as we're unauthorized. No matter, we can still upload our shells and what other files we would like to upload.
Okay, I don't think I will need to put any pictures in this one, it's that simple. Follow my instructions:
#1 - Open the directory of where your ASP shell is (example: desktop, documents, or custom folder). Your ASP shell should have a name similar to "shell.asp;anything.jpg".
#2 - Drag your ASP shell from your custom folder into the website folder we just exploited. It should just go straight in there with no problems.
Tada! We have successfully uploaded our shell! Now all we have to do is go to: http://vulnerablesite.com/shell.asp;anything.jpg.

I hope this helps.

Please do not leech this. I spent all my time making it. Full credit to me (Phizo).

My other webhacking tutorials:
MySQL injection: https://hackforums.net/showthread.php?tid=1219987
Cross Site Scripting: https://hackforums.net/showthread.php?tid=1212236
Remote File Inclusion: https://hackforums.net/showthread.php?tid=1213488
[Image: 8Yoto.png]
thanks for the tut, this works better on IIS 5.0 ...
when i try to upload my shell it says file to large.
i tired to upload a text file.
its been trying to upload it for like 5mins now..
help PM -- TV me please??
great tut mate thanks :) attempting it now :)
(Apr 12, 2011 09:29 AM)ihasdevkit Wrote:  thanks for the tut, this works better on IIS 5.0 ...
when i try to upload my shell it says file to large.
i tired to upload a text file.
its been trying to upload it for like 5mins now..
help PM -- TV me please??

That's odd. I attempted to run this exploit on an IIS 5.0 website and it didn't work. PM me your TV info.
[Image: 8Yoto.png]
Good clear and well written tutorial, thanks.
(Apr 12, 2011 09:48 AM)pepon Wrote:  Good clear and well written tutorial, thanks.

Thanks for the feedback ;).
[Image: 8Yoto.png]
thats a nice tutorial, but i have a problem. i cant connect to the site that i want to hack, because the have only a www. site.
This means i can connect with my webbrowser on "http://www.mysite.de" but not on "http://mysite.de" .
Can anybody help me?

Sorry for my bad english. I hope you understand me.
I haven't looked in to this exploit to much, so correct me if I'm wrong.

Every IIS 6.0 server with Webdav enabled is vulnerable?
great amazingly written tutorial man.
thanks a bunch.
[Image: fZWXPWj.gif]
(Apr 12, 2011 10:33 AM)JoinSeventh Wrote:  I haven't looked in to this exploit to much, so correct me if I'm wrong.

Every IIS 6.0 server with Webdav enabled is vulnerable?

To my knowledge, yes. I've never came across failure exploiting a IIS 6.0 website with Webdav enabled.
[Image: 8Yoto.png]
I'll try it out.
And then post the result.

Doesn't it work on vista as well?

Thanks
(Apr 12, 2011 10:39 AM)Phizo Wrote:  To my knowledge, yes. I've never came across failure exploiting a IIS 6.0 website with Webdav enabled.

how do you check if its enabled?🤝
Well I always get this error ! :D - what do I do wrong here :S... I can't find the folder .. even though it's a vuln site.. It ask me for username & password if I add ftp:// ...

[IMG]http://img820.imageshack.us/img820/8496/ignore.jpg[/IMG]

Hope someone helps me :P
(Apr 12, 2011 02:57 PM)CyberM@X Wrote:  Well I always get this error ! :D - what do I do wrong here :S... I can't find the folder .. even though it's a vuln site.. It ask me for username & password if I add ftp:// ...

[IMG]http://img820.imageshack.us/img820/8496/ignore.jpg[/IMG]

Hope someone helps me :P

maybe try this?
http://www.exploit-db.com/exploits/8806/

BTW, how do you know its vulnerable?
Pretty sweet bro p =p =p =p


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Vaso ShishaFeb 2, 2023 12:46 PM 1 137 Feb 2, 2023 12:46 PM
Last Post: Skorp
by djevilasNov 27, 2021 11:06 AM 2 287 Nov 27, 2021 11:06 AM
Last Post: djevilas
by djevilasNov 24, 2021 06:22 AM 0 111 Nov 24, 2021 06:22 AM
Last Post: djevilas