Reader small image

You're reading from  Python Ethical Hacking from Scratch

Product typeBook
Published inJun 2021
Reading LevelIntermediate
PublisherPackt
ISBN-139781838829506
Edition1st Edition
Languages
Right arrow
Author (1)
Fahad Ali Sarwar
Fahad Ali Sarwar
author image
Fahad Ali Sarwar

Fahad has been teaching ethical hacking and penetration testing on different online platforms with a solid student base. He's passionate about cybersecurity and ethical hacking tool development. Fahad is particularly enthusiastic about Python for its simplicity and ease of use and in this book he has chosen it as a language of preference due to its features.
Read more about Fahad Ali Sarwar

Right arrow

Introduction to Scapy

In order to create a network scanner, we will use a Python networking library called Scapy. This library is designed to send, sniff, dissect, and edit network packets. Scapy is a very powerful network packet manipulation tool. To read more about the tool, you can go to the following link: https://scapy.readthedocs.io/en/latest/introduction.html.

Installing Scapy

To install Scapy, first open the terminal. Let's understand a few things first. In Linux, there are two user privileges, user and root, and the environment for both users is different. Higher privileges are required for system-level commands. To send and receive packets, we will need to install Scapy as a root user as well as a normal user. We will write our program as a normal user and when we run it, we will run it as root as sending packets requires higher privileges in Linux (you can think of it as the Run as Administrator equivalent in Windows). You will see what I mean in a moment. To...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Python Ethical Hacking from Scratch
Published in: Jun 2021Publisher: PacktISBN-13: 9781838829506

Author (1)

author image
Fahad Ali Sarwar

Fahad has been teaching ethical hacking and penetration testing on different online platforms with a solid student base. He's passionate about cybersecurity and ethical hacking tool development. Fahad is particularly enthusiastic about Python for its simplicity and ease of use and in this book he has chosen it as a language of preference due to its features.
Read more about Fahad Ali Sarwar