#!/usr/bin/env python3 from scapy.all import * # Le réseau à scanner network = "192.168.2.0/24" # Scanne le réseau et affiche le résultat ans, unans = srp(Ether(dst="ff:ff:ff:ff:ff:ff")/ARP(pdst=network), timeout=5, verbose=0) for snd, rcv in ans: print(rcv.sprintf(r"%Ether.src% - %ARP.psrc%"))