November 2017
Intermediate to advanced
226 pages
5h 59m
English
We can write a ARP Watcher with the following steps:
from scapy.all import *
interface = "en0" ip_rage = "192.168.1.1/24" broadcastMac = "ff:ff:ff:ff:ff:ff"
pkt = Ether(dst=broadcastMac)/ARP(pdst = ip_rage)
The structure of the packet will be as follows:

answered, unanswered = srp(pkt, ...
Read now
Unlock full access