4.64 out of 5
4.64
10877 reviews on Udemy

Learn Python & Ethical Hacking From Scratch

Start from 0 & learn both topics simultaneously from scratch by writing 20+ hacking programs
Instructor:
Zaid Sabih
60,626 students enrolled
English [Auto] More
170+ videos on Python programming & ethical hacking
Install hacking lab & needed software (on Windows, OS X and Linux)
Learn 2 topics at the same time - Python programming & Ethical Hacking
Start from 0 up to a high-intermediate level
Write over 20 ethical hacking and security programs
Learn by example, by writing exciting programs
Model problems, design solutions & implement them using Python
Write programs in Python 2 and 3
Write cross platform programs that work on Windows, OS X & Linux
Have a deep understanding on how computer systems work
Have a strong base & use the skills learned to write any program even if its not related to hacking
Understand what is Hacking, what is Programming, and why are they related
Design a testing lab to practice hacking & programming safely
Interact & use Linux terminal
Understand what MAC address is & how to change it
Write a python program to change MAC address
Use Python modules and libraries
Understand Object Oriented Programming
Write object oriented programs
Model & design extendable programs
Write a program to discover devices connected to the same network
Read, analyse & manipulate network packets
Understand & interact with different network layers such as ARP, DNS, HTTP ....etc
Write a program to redirect the flow of packets in a network (arp spoofer)
Write a packet sniffer to filter interesting data such as usernames and passwords
Write a program to redirect DNS requests (DNS Spoofer)
Intercept and modify network packets on the fly
Write a program to replace downloads requested by any computer on the network
Analyse & modify HTTP requests and responses
Inject code in HTML pages loaded by any computer on the same network
Downgrade HTTPS to HTTP
Write a program to detect ARP Spoofing attacks
Write payloads to download a file, execute command, download & execute, download execute & report .....etc
Use sockets to send data over TCP
Send data reliably over TCP
Write client-server programs
Write a backdoor that works on Windows, OS X and Linux
Implement cool features in the backdoor such as file system access, upload and download files and persistence
Write a remote keylogger that can register all keystrikes and send them by Email
Interact with files using python (read, write & modify)
Convert python programs to binary executables that work on Windows, OS X and Linux
Convert malware to torjans that work and function like other file types like an image or a PDF
Bypass Anti-Virus Programs
Understand how websites work, the technologies used and how to test them for weaknesses
Send requests towebsites and analyse responses
Write a program that can discover hidden paths in a website
Write a program that can map a website and discover all links, subdomains, files and directories
Extract and submit forms from python
Run dictionary attacks and guess login information on login pages
Analyse HTML using Python
Interact with websites using Python
Write a program that can discover vulnerabilities in websites

Welcome this great course where you’ll learn python programming and ethical hacking at the same time, the course assumes you have NO prior knowledge in any of these topics, and by the end of it you’ll be at a high intermediate level being able to combine both of these skills and write python programs to hack into computer systems exactly the same way that black hat hackers do, and use the programming skills you learn to write any program even if it has nothing to do with hacking.

This course is highly practical but it won’t neglect the theory, we’ll start with basics on ethical hacking and python programming, installing the needed software and then we’ll dive and start programming straight away. From here onwards you’ll learn everything by example, by writing useful hacking programs, so we’ll never have any boring dry programming lectures.

The course is divided into a number of sections, each aims to achieve a specific goal, the goal is usually to hack into a certain system, so we’ll start by learning how this system work and its weaknesses, and then you’ll lean how to write a python program to exploit these weaknesses and hack the system, as we write the program I will teach you python programming from scratch covering one topic at a time, so by the end of the course you’re going to have a number of ethical hacking programs written by yourself (see below) from backdoors, keyloggers, credential harvesters, network hacking tools, website hacking tools and the list goes on. You’ll also have a deep understanding on how computer systems work, how to model problems, design an algorithm to solve problems and implement the solution using python.

As mentioned in this course you will learn both ethical hacking and programming at the same time, so here are some of the topics that will be covered in the course:

Programming topics:

  • Writing programs for python 2 and 3.

  • Using modules and libraries.

  • Variables, types …etc.

  • Handling user input.

  • Reading and writing files.

  • Functions.

  • Loops.

  • Data structures.

  • Regex.

  • Desiccation making.

  • Recursion.

  • Threading.

  • Object oriented programming.

  • Packet manipulation using scapy.

  • Netfilterqueue.

  • Socket programming.

  • String manipulation.

  • Exceptions.

  • Serialisation.

  • Compiling programs to binary executables.

  • Sending & receiving HTTP requests.

  • Parsing HTML.

  • + more!


Hacking topics:

  • Basics of network hacking / penetration testing.

  • Changing MAC address & bypassing filtering.

  • Network mapping.

  • ARP Spoofing – redirect the flow of packets in a network.

  • DNS Spoofing – redirect requests from one website to another.

  • Spying on any client connected to the network – see usernames, passwords, visited urls ….etc.

  • Inject code in pages loaded by any computer connected to the same network.

  • Replace files on the fly as they get downloaded by any computer on the same network.

  • Detect ARP spoofing attacks.

  • Bypass HTTPS.

  • Create malware for Windows, OS X and Linux.

  • Create trojans for Windows, OS X and Linux.

  • Hack Windows, OS X and Linux using custom backdoor.

  • Bypass Anti-Virus programs.

  • Use fake login prompt to steal credentials.

  • Display fake updates.

  • Use own keylogger to spy on everything typed on a Windows & Linux.

  • Learn the basics of website hacking / penetration testing.

  • Discover subdomains.

  • Discover hidden files and directories in a website.

  • Run wordlist attacks to guess login information.

  • Discover and exploit XSS vulnerabilities.

  • Discover weaknesses in websites using own vulnerability scanner.


Programs you’ll build in this course:

You’ll learn all the above by implementing the following hacking programs

  • mac_changer – changes MAC Address to anything we want.

  • network_scanner – scans network and discovers the IP and MAC address of all connected clients.

  • arp_spoofer – runs an arp spoofing attack to redirect the flow of packets in the network allowing us to intercept data.

  • packet_sniffer – filters intercepted data and shows usernames, passwords, visited links ….etc

  • dns_spoofer – redirects DNS requests, eg: redirects requests to from one domain to another.

  • file_interceptor – replaces intercepted files with any file we want.

  • code_injector – injects code in intercepted HTML pages.

  • arpspoof_detector – detects ARP spoofing attacks.

  • execute_command payload – executes a system command on the computer it gets executed on.

  • execute_and_report payload – executes a system command and reports result via email.

  • download_and_execute payload – downloads a file and executes it on target system.

  • download_execute_and_report payload – downloads a file, executes it, and reports result by email.

  • reverse_backdoor – gives remote control over the system it gets executed on, allows us to

    • Access file system.

    • Execute system commands.

    • Download & upload files

  • keylogger – records key-strikes and sends them to us by email.

  • crawler – discovers hidden paths on a target website.

  • discover_subdomains – discovers subdomains on target website.

  • spider – maps the whole target website and discovers all files, directories and links.

  • guess_login – runs a wordlist attack to guess login information.

  • vulnerability_scanner – scans a target website for weaknesses and produces a report with all findings.

As you build the above you’ll learn:

  • Setting up a penetration testing lab to practice hacking safely.

  • Installing Kali Linux and Windows as virtual machines inside ANY operating system.

  • Linux Basics.

  • Linux terminal basics.

  • How networks work.

  • How clients communicate in a network.

  • Address Resolution Protocol – ARP.

  • Network layers.

  • Domain Name System – DNS.

  • Hypertext Transfer Protocol – HTTP.

  • HTTPS.

  • How anti-virus programs work.

  • Sockets.

  • Connecting devices over TCP.

  • Transferring data over TCP.

  • How website work.

  • GET & POST requests.

  • And more!

By the end of the course you’re going to have programming skills to write any program even if it has nothing to do with hacking, but you’ll learn programming by programming hacking tools!

With this course you’ll get 24/7 support, so if you have any questions you can post them in the Q&A section and we’ll respond to you within 15 hours.

Notes:

  • This course is created for educational purposes only and all the attacks are launched in my own lab or against devices that I have permission to test.

  • This course is totally a product of Zaid Sabih & zSecurity, no other organisation is associated with it or a certification exam. Although, you will receive a Course Completion Certification from Udemy, apart from that NO OTHER ORGANISATION IS INVOLVED.

Introduction

1
Teaser

This a teaser lecture to give you a taste of what you'll be able to do by the end of the course.

I will show you some of the tools we'll build later on in the course, you'll see how to:

1. Use the arp_spoof and packet_sniffer programs to steal usernames and passwords entered by any computer on the same network.

2. Use the backdoor to remotely hack a Windows machine.

3. Use the vulnerability_scanner program we'll write to discover weaknesses in a website.

2
Course Introduction

This lecture will give you an introduction of how the course is structured, the different sections in the course, and what you'll learn in it.

3
Introduction to Python Programming & Ethical Hacking

This lecture will introduce you to the two main topics of the course, ethical hacking and python programming and will explain why they are related and why you might want to learn both at the same time.

4
Lab Overview & Needed Software

In this course, we will be using a number of operating systems, Kali for hacking and 2 other target machines, in this section you will learn how to install all of these machines as virtual machines inside your current operating system, this allow use to use all of the machines at the same time, it also completely isolates these machines from your main machine therefore your main machine will not be affected if anything goes wrong.

This lecture will give you an overview of the lab that we will need to set up for this course.

5
Installing Kali 2020 as a virtual Machine

This lecture will give you an overview of the software you need to for this course, how to install it and how to install Kali Linux as a virtual machine.

6
Basic Overview of Kali Linux

Kali Linux is an Linux distro that is designed for hackers.

In this lecture we will have a basic look on Kali linux just to get you comfortable with it.

You will learn how to use its main applications, browse files, connect to the internet ....etc.

7
The Terminal & Linux Commands

In this lecture you will learn how to interact with the linux terminal and run linux commands.

8
Python 2 VS Python 3 & Writing Our First Program

This lecture will explain the differences between Python 2 and Python 3, you'll also write your first program here.

9
Installing & Using a Python IDE

This lecture will teach you how to install a python interactive development environment (IDE), and how to use this IDE to write python programs.

Writing a MAC Address Changer - Python Basics

1
What is MAC Address & How To Change it

MAC address (Media Access Control) - is a unique identifier assigned to network interfaces.

In this lecture you'll learn what is is, how its used, and how to change it using Kali Linux.

2
Using Python Modules & Executing System Commands

This lecture will teach you how to use Python modules, as an example you'll learn how to use the subprocess module to execute system commands from Python.

3
Implementing a Very Basic MAC Changer

In this lecture we'll write a very basic program to change the MAC address.

4
Variables & Strings

This lecture will introduce you to Python variables and strings, how initialise them and use them in code.

5
Using Variables in MAC Changer

In this lecture you'll see how to use variables in our mac_changer to set the interface name and use a variable value for the mac address.

6
Getting Input From The User

In this lecture you'll learn how to use python to ask the user to input values, and use this value to initialise a variable.

7
Handling User Input

In this lecture you'll see how to use values entered by the user in our python program.

8
Handling Command-line Arguments

In this lecture you will learn how to implement command-line arguments in your python program.

9
Initialising Variables Based on Command-line Arguments

In this lecture you'll learn how to use the arguments given by the user in our python program.

10
Python Functions

A function is a number of statements that does a specific task.

This lecture will introduce you to functions in python.

11
Returning Values From Functions

In this lecture you'll learn how to return values from functions, and use them in your python program.

12
Decision Making in Python

This lecture will introduce you to decision making in python, you'll learn the different types of if statements that can be used to make decisions at run time and control the program flow.

13
Using Conditional Statements in MAC Changer

In this section you'll see an example of using decision making to control program flow.

MAC Changer - Algorithm Design

1
Introduction to Algorithms

An algorithm is a set of instructions to solve a problem.

This lecture will introduce you to algorithm design, as an example we'll design an algorithm to check if the mac address changes after the execution of our program and display an appropriate message to the user.

2
Reading Output Returned By System Commands

In this lecture you'll learn how to execute system command and read its result using Python.

3
Introduction to Regular Expressions (Regex)

Regular expressions are used to define search patters.

This lecture will introduce you to Python Regular Expressions (Regex).

As an example we'll learn how to use regex to extract a substring from a larger string.

4
Extracting a Substring Using Regex

In this lecture you'll learn how to use regex to extract a substring from a larger string.

5
Refactoring & Housekeeping

We'll spend this lecture tidying up our program, making sure its readable and extendable.

6
Implementing The Validation Algorithm

In this lecture we'll put everything learned in this subsection in practice and implement the algorithm we designed at the first lecture to check if the mac address did change to the one the user requested and display an appropriate message.

7
Python 3 Compatibility

In this lecture you will learn how to test Python 2 programs with Python 3 and fix conflicts to get them to properly work with Python 3.

Programming a Network Scanner

1
Introduction & Teaser

This lecture will give you an introduction to this section, explain what we want to achieve, and show you a teaser of a program that we want to mimc.

2
Installing Windows as a Virtual Machine

In this lecture you will learn how to set up a windows virtual machine so that we can try and hack into it to practice penetration testing.

3
Introduction to ARP

Address Resolution Protocol (ARP) is used to discover the physical address (link layer address) of devices on the network.

This lecture will introduce you to ARP, how it works and it can be used to discover devices on the network.

4
Designing an Algorithm To Discover Clients on The Same Network

In this lecture we'll use what we learned about ARP to design an algorithm to discover clients connected to the same network.

5
Using Scapy To Create an ARP Request

In this lecture you'll learn how to use Scapy to create an ARP request.

6
Combining Frames To Broadcast Packets

This lecture will teach you how to send a broadcast request using Scapy to discover clients connected to the same network.

7
Sending & Receiving Packets

In this lecture you'll learn how to use Scapy in Python to send an ARP packet, and receive its response.

8
Introduction Lists in Python

This lecture will introduce you to the list data structure in Python, as an example you'll learn how to store the discovered clients in a list.

9
Iterating Over Lists & Analysing Packet

In this lecture you'll learn how to use a loop to iterate over list entries.

10
Using Escape Characters To Improve Program Output

This lecture will teach you how to access values in a list, and use escape characters to display values nicely.

11
Introduction to Dictionaries in Python

A dictionary is an unordered collection of data in which each element has a key (to access the element) and a value.

In this lecture you'll be introduced to dictionaries and learn how they work and how to use them.

As an example we'll use a dictionary to store data about the discovered clients.

12
Improving the Program Using a List of Dictionaries

This lecture will you give you an example of using nested data structures; we'll use a list of dictionaries to organise the discovered clients, and their related information.

13
Iterating Over Nested Data Structures

In this lecture you'll learn some programming practices to keep the code clean, readable, and extendable.

14
Get IP Range Using Command Line Arguments
15
Testing The Network Scanner With Python 3

This lecture will highlight some of the changes that you need to be aware of when using Scapy with python 3.

Writing an ARP Spoofer

1
What is ARP Spoofing?

ARP spoofing is a very dangerous attack that allows hackers to intercept the flow of packets in the network, allowing them to spy on any connected device or even modify data on the fly.

In this lecture you'll learn what arp spoofing attack is, why is it possible, and what it can be used to do ?

2
Intercepting Data in a Network Using arpspoof

In this lecture you'll learn how to run an ARP spoofing attack using Kali Linux.

3
Creating an ARP Response

This lecture will teach you how to create an ARP Response using Scapy in Python.

4
Sending ARP Responses

This lecture will teach you how to send the responses we created in the previous section, and redirect the flow of packets to flow through our computer.

5
Extracting MAC Address From Responses

In this lecture you'll learn how to use python extract the MAC address value from ARP Responses.

6
Introduction to Loops in Python

A loop defines a block of code to run as long as a condition is valid.

This lecture will introduce you to loops in Python.

7
More on Loops & Counters

In this lecture we'll use an infinite loop to send arp spoofing responses and prominently intercept packets in the network.

8
Dynamic Printing

This lecture will teach you more about printing, strings, and special characters to dynamically print data on screen.

9
Exception Handling in Python

Exceptions happen when something goes wrong during execution.

This lecture will teach you how to handle exceptions properly in Python.

10
Implementing a Restore Function

In this lecture we'll implement a restore function to restore the arp table of targets when we quit the program.

11
Restoring ARP Tables on Exception

In this lecture you'll learn how to invoke the restore function we wrote earlier when the user presses CTRL + C.

12
Fix Dynamic Printing

Writing a Packet Sniffer

1
Introduction & Teaser

The goal in this section is to write a packet sniffer, a program that can capture packets and analyse them to extract useful data such as visited websites, usernames, passwords....etc

This lecture will introduce you to this idea, and show you the program in action so you know exactly what's the end product that we are trying to get to.

2
Sniffing Packets Using Scapy

This lecture will teach you how to sniff / capture packets using Scapy in Python.

3
Extracting data From a Specific Layer

This lecture will teach you how to filter sniffed packets and extract data sent over the HTTP layer.

4
Analysing Sniffed Packets & Extracting Fields From Layers

This lecture will teach you how to access specific field values in packet layers.

5
Analysing Fields & Extracting Passwords

In this lecture you'll learn how to extract data from specific fields, as an example you'll see how to extract sent passwords.

6
Extracting URLs

In this lecture we'll continue building our sniffer and you'll learn how to extract urls and display them on screen.

7
Capturing Passwords From Any Computer Connected to the Same Network

In this lecture we'll use our arp_spoof program to intercept packets, and the sniffer that we programmed in this section to filter the intercepted packets and display usernames, passwords and visited urls.

8
Strings & Bytes in Python 3

This lecture highlights one of the main changes that Python 3 brought; the separation between Bytes and Strings. So in this lecture you will learn the implications of this, and how convert strings to bytes and vice versa.

Writing a DNS Spoofer

1
Intercepting Packets - Creating a Proxy

This lecture will teach you how to create a proxy using Python, this allows us to intercepted packets, modify them and then forward them to their destination.

2
Converting Packets to Scapy Packets

In this lecture you'll learn how to  convert the intercepted packets to Scapy packets, so we can modify them later on.

3
Introduction to DNS Spoofing

DNS Spoofing allows hackers to redirect requests to domain names (eg: www.google.com) to any destination they want.

This lecture will explain to you what DNS Spoofing is, why is it possible, and how we'll implement a DNS Spoofer in Python.

4
Filtering DNS Responses

In this lecture you'll learn how to analyse responses in general, as an example we'll be analysing DNS responses.

5
Analysing & Creating a Custom DNS Response

In this lecture you'll learn how to create a custom DNS response using Scapy in Python.

6
Modifying Packets On The Fly

In this lecture we'll modify intercepted DNS responses and replace them with the one we created in the previous lecture.

7
Redirecting DNS Responses

In this lecture we'll use the program we built in this section with the arp_spoofer to redirect requests from bing.com to our own web server!

8
Conversion Between Strings & Bytes

Writing a File Interceptor

1
Introduction & Teaser

The goal of this section is to write a Python program to replace downloads on the network.

This lecture will give you a general idea of what we want to achieve by the end of this section, and it will show you a teaser of the program that we'll build so you understand what we want to achieve by the end of this section.

2
Filtering Traffic Based on the Port Used

In this lecture you'll learn how to filter Scapy packets based on the port they are sent from/to.

3
Analysing HTTP Requests

In this lecture, you'll learn how to analyse requests in general, as an example we'll analyse HTTP requests that request a file to download and see how we can exploit these requests to replace files.

4
Intercepting HTTP Requests

In this lecture you'll learn how to modify HTTP requests on the fly.

5
Modifying HTTP Responses on The Fly

In this lecture we'll put what we learned so far in practice and use our program to replace downloads on the fly.

6
Intercepting & Replacing Downloads on The Network

In this lecture we'll use the program we wrote to replace files downloaded by any user with any file we want.


7
Testing The File Interceptor With Python 3

Writing a Code Injector

1
Introduction & Teaser

The goal of this section is to build a Python program to inject code in web pages loaded by computers on the same network.

This lecture will give you a general idea of what we want to achieve by the end of this section, and will show you a teaser of the program we want to build so you have a clear idea of what we want to achieve at the end of this section.

2
Analysing HTTP Responses

In this lecture you'll learn how to analyse HTTP responses to see how to exploit them to inject code.

3
Replacing a Substring Using Regex

In this lecture you'll learn more about regex and how to use it to replace a substring within a bigger string.

4
Decoding HTTP Responses

Some websites return encoded HTTP responses, in this lecture you'll learn how to decode HTTP responses so we can read them and modify them.

5
Modifying HTTP Responses & Injecting Javascript Code in HTML Pages

In this lecture we'll use everything we learned so far to inject a very simple javascript code in HTML pages.

6
Refactoring & Housekeeping

In this lecture we'll cover some programming practices to keep the code nice and tidy, so that its readable and extendable.

7
Debugging Issues in Python

In this lecture we'll debug some issues in our code_injector and discuss how they can be fixed.

8
Using Groups & None-capturing Regex

In this lecture you'll learn even more about regex in Python and how to use none capturing groups.

9
Recalculating Content Length

In this lecture you'll learn how to re-calculate the content length after modifying the page code.

10
Test The Code Injector With Python 3
11
BeEF Overview & Basic Hook Method

BeEF is a browser exploitation framework that allows us to run a large number of commands on hooked browser.

In this lecture we will have an overview of the interface, how to start the framework and how to create a hook page and hook targets to it.

12
Hooking Computers Using code_injector

This lecture will show you how to use the program we made in this section to automatically hook browsers to BeEF.

You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.6
4.6 out of 5
10877 Ratings

Detailed Rating

Stars 5
6888
Stars 4
3214
Stars 3
656
Stars 2
90
Stars 1
47
21c86219e604f4cac85865f72fcec0d7
30-Day Money-Back Guarantee

Includes

24 hours on-demand video
1 article
Full lifetime access
Access on mobile and TV
Certificate of Completion

Archive