Python tools for pentesting
Tools and techniques to achieve:
- Coding your own reverse shell (TCP+HTTP).
- Exfiltrating data from victim's machine.
- Using anonymous shell by abusing Twitter, Google Form and Sourceforge.
- Hacking passwords with different techniques: code a Keylogger, perform Clipboard Hijacking.
- Bypassing some firewall by including cryptography encryption in your script shells (AES,RSA,XOR)
- Writing scripts to perform privilege escalation on windows by abusing a weak service. And more.
Contents
From course: Python For Offensive PenTest: A Complete Practical Course.
General index of the course
- Gaining persistence shells (TCP + HTTP):
- Advanced scriptable shells:
- Techniques for bypassing filters:
- Malware and crytography:
- Password Hickjacking:
- Privilege escalation:
Tools
pyinstaller
PyInstaller bundles a Python application and all its dependencies into a single package. The user can run the packaged app without installing a Python interpreter or any modules.
See pyinstaller.
py2exe
This setup file will convert the python script scsiaccess.py into an exe file:
from distutils.core import setup
import py2exe, sys, os
sys.arg.append("py2exe")
setup(
options = {'py2exe': {'bundle_files': 1}},
windows = [ {'script': "scsiaccess.py"}],
zipfule = None
)
Inmunity Debuger
See Inmunity Debugger.
Last update: 2024-03-29 Created: April 10, 2023 16:52:50