Search code examples
pythonpython-2.7scapylibpcappacket-sniffers

How can I sniff whole network in Scapy


When I use Scapy,It sniffs only my local machine traffic. How can I sniff whole the local network? I set my network adapter mode to Monitoring mode and also enable port forwarding. But still It can't sniff another client on the network. Do I have to ARP Poisoning? The command I use:

pkts = sniff(iface="wlan0", filter="icmp")

Thanks.


Solution

  • At first you should redirect others devices traffic to your device then,start sniffing.