Skip to Content
Python for Offensive PenTest
book

Python for Offensive PenTest

by Hussam Khrais
April 2018
Intermediate to advanced content levelIntermediate to advanced
176 pages
4h 16m
English
Packt Publishing
Content preview from Python for Offensive PenTest

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Penetration Testing Cookbook

Python Penetration Testing Cookbook

Rejah Rehim

Publisher Resources

ISBN: 9781788838979Supplemental Content