Python in Firefox EXE

In this section, we will enhance our previous PoC script to match the following:

  1. Once you get a pass in the memory, print out the memory dump and stop debugging to minimize performance issues
  2. Export your script into a standalone EXE file, so it can be used in the postexploitation phase (using Py2exe)
  3. Test it against antivirus
  4. Try and make sure that it's fully functional by testing it while logging into Twitter, Gmail, PayPal, and Facebook accounts
In the callback function, add a new if statement to terminate the debugging once we get a pass keyword. It's always a good thing before sending this script to your target, to test it locally first. To do so, you may need to change the setting in the py2exe setup file to the ...

Get Python for Offensive PenTest now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.