
Explore six course sections, from setting up the lab and Python basics to building security tools, web application security, exploits, and encryption for ethical hacking with Python.
Set up an isolated lab with three Windows 7 machines and a Linux attacker, connect via NAT, and install Python 2.7 to build and test ethical hacking tools.
Learn how netcat enables quick data transmission and device-to-device communication, including port listening, cross-platform connections on Windows and Linux, and observing the tcp three-way handshake.
Learn to use python sockets to connect to devices via ipv4 or ipv6, specify host and port, and send and receive data with a simple client script and netcat.
Build a customized port scanner in Python using sockets to enumerate open ports on a target. Scan a range of ports, report open ones, and prepare for banner grabbing.
Learn to perform banner grabbing on open ports using netcat, identify the running service and its version by connecting to a destination IP on port 22, and verify the connection.
Explore how to write a Python script to bypass traffic with a SOCKS proxy and the Tor network, including the theory behind using proxies to anonymize traffic.
Set up a Linux machine with Tor, install the socks library, and run a live example to route traffic through Tor and change the IP.
Demonstrate using a Python Wi‑Fi jammer to jam nearby Wi‑Fi networks and observe devices disconnect during script execution.
Explore finding nearby wifi networks with Python, extracting ssid, address, channel, and quality, and setting up the interface to prepare a jammer for future lectures.
Explore building a wifi jamming function in Python using a library to broadcast syndication packets to nearby networks. Learn to enable monitor mode and switch interfaces.
Learn to handle urls with python by sending get requests using a library, intercepting traffic via a proxy, and examining responses and headers including status codes.
Write a simple Python script to test a PHP authentication endpoint by posting encoded username and password, using headers and data encoding, and read passwords from a file.
Explore how to build a simple Python script to communicate with a remote shell, execute commands, and return results, including handling get requests and input encoding.
Explore building a python script to perform a dictionary attack on web servers, using http status codes to verify file existence and analyze responses.
Learn how Python shells enable ethical hacking, featuring reverse and bind shells, backdoors, and remote command execution between compromised and attacker machines using Python libraries.
Develop a Python reverse shell on Linux by programming a script that connects back to the attacker, receives commands, executes them, and returns the results.
Explore how a Python rootkit on Linux can invoke a reverse shell and hide its process from standard process management tools.
Explore writing a Python reverse shell for Windows, comparing os library versus subprocess, and selecting portable techniques to output commands and establish a connection, with notes on future approaches.
Learn how to build a Python bind shell for ethical hacking, where a compromised machine listens for a connection, executes commands, and returns results.
Protect your shell with password by adding a secret word to a Python script to verify authorized access and consider converting it into an executable to deter reverse engineering.
Learn how to use PyInstaller on Windows to convert a Python reverse shell script into a single Win32 executable, packaging dependencies and testing a one-file, windowed build.
Explore using PyInstaller to convert a Python script into a Linux ELF executable, packaging dependencies into a single file to enable a reverse shell on Linux targets.
Learn how to convert a Python script into a win32 executable with py2exe, configure the setup file, and manage options for console or hidden execution and reverse shell scenarios.
Demonstrate bypassing antivirus defenses by packaging Python payloads with PyInstaller and py2exe, explore reverse shells, and compare antivirus detections to assess evasion techniques.
Learn to write a Python script that executes Linux commands without saving them, using os.system, and understand how command history can be bypassed in ethical hacking contexts.
Learn to build rainbow tables and deal with hashes with Python in part 1, exploring hash libraries, hash functions, and rainbow table generation.
Generate a rainbow table from a word list using Python, hashing each word, and saving the results to a rainbow table text file.
Learn to save rainbow table results with a Python script by opening a file, writing hashed words line by line, and handling write errors.
Write a python script to calculate the MD5 hash of a file and print the hex digest, with optional SHA-1 support for multiple hashes.
Secure a Python reverse shell by encrypting the connection with SSL, wrapping sockets, and exchanging commands and results between attacker and target.
Learn the basics of buffer overflow vulnerabilities, how memory corruption occurs, and how to detect them. Explore exploiting stack with Python, hijacking the instruction pointer and injecting shellcode.
Explore Immunity Debugger, a powerful reverse engineering tool. Learn its four screens: stack, hex dump, registers, and modules, and practice tracing the stack and code for buffer overflow analysis.
Master fuzzing by embedding invalid or random data into a program to test handling and expose buffer overflow risks. Use a simple C example to illustrate size checks.
Develop a simple Python file fuzzer to generate and write bytes, test a target application for buffer overflow, and analyze crash sizes and offsets with immunity debugger.
NOTE : I update this course monthly , so maybe you can see some sections with few lectures , especially for buffer overflow section , so don't worry about that :)
This course will teach you how to use python programming language during any penetration testing or ethical hacking operation , it will teach you how to write your own ethical hacking scripts on various information security fields like network security , web application security , and endpoint security.
Also this course will teach you how to deal with buffer overflow vulnerabilities on windows machines and how you can write fully customized fuzzers to help you in exploitation stage.
Each section of this course will be a wonderful journey , I will talk about a lot of interesting topics about each section , I will teach you how to think in a practical way to solve a lot of programmatic problems that you could face during any penetration testing operation.
First , we will talk about how you can build your own lab with simple network configuration , then we will talk about Netcat and how we can use it , because you need to know how we can send and receive data between the attacker machine and the target machine , Then we will talk about Python sockets , sockets type and where we can use each type , and also we will learn how we can use sockets to build a simple port scanner
Then we will talk about TOR network , and how we can build python scripts to perform anonymous penetration testing through TOR network using SOCKS , I will teach you multiple techniques to build the same scripts , because it's really important to train the student how he can use this techniques during penetration testing.
Also in this course , I talked about very interesting topic which is how we can write a Python wifi jammer , to jam on wifi networks , I talked about the theory that I will use , then we will write the code.
For web application security , I talked about some great topics about how we can handle a http requests in python and how we can use some libraries such as urllib2 , urllib to communicate with web servers without any problem , We will write a lot of interesting tools such as Web shell controller , authentication system cracker , and a lot of other interesting topics.
In the endpoint security section , I will focused on how you can build your own command line shells that works on linux and windows without any problems , and the types of this shells , we talked about reverse shell and bind shell , and how we can build a protected bind shell , and how you can use multiple techniques to execute commands on systems and bypass some security restrictions , I also talked about how we can convert python scripts to exe files on windows OS and ELF files on Linux OS and we will talk about how we can build python rootkit for linux that with hidden process.
In encryption basics section , I talked about a lot of useful things that you can use using python , such as hashing , creating rainbow tables , finally I will teach you how we can build a encrypted reverse shell with ssl.
Finally , the buffer overflow section , I will teach you how you can exploit a simple stack buffer overflow vulnerabilities on windows OS using python scripts , I will talk about just the basics of buffer overflow , and I will talk about the general topics only.