Search code examples
pythonsecuritynetworkingnetwork-programmingscapy

Can i scan the wi-fi network traffic using monitor mode?


I am making a wi-fi scanner that protects the network from threats, i need to scan all of the packets of all of the devices in the network(with monitor mode) using scapy, problem is that the packets will be encrypted because of WPA2 that gives every device a different key.... is there a way for me to get the keys of the devices so i can scan the traffic?

i tried to search everywhere but i found no solution, the only thing that i can think about is extracting the keys from every 4 way handshake but it will be pretty much impossible.


Solution

  • Got it, i have the PSK cause it's my network. so i can listen to every 4 way handshake and use the PSK to create the PTK for every device that will enter the network.