November 2017
Intermediate to advanced
226 pages
5h 59m
English
Here are the steps to write a sniffer with scapy module:
import sys from scapy.all import *
interface = "en0"
You can get the interface to be used with the help of the ifconfig command in Linux and macOS:

def callBackParser(packet):
if IP in packet:
source_ip = packet[IP].src
destination_ip ...Read now
Unlock full access