I'm doing some Wi-Fi scripting with Scapy and I wish to do a WPS request. As part of this I need to conduct a series of packets such as EAPOL (Start) followed by receiving an EAP (Request, Identity) packet from the router.
If I do a SRP(EAPOL) with an appropriate packet Scapy will timeout waiting for a response because it seems the identity request isn't an appropriate 'response' to the packet for whatever definition Scapy uses.
Alternatively I tried to start sniff() directly after sending the packet, however it doesn't seem to start in time for picking up the packet.
An independent sniffing thread (started in a separate console window) does see the AP response as below.
RadioTap / Dot11 / LLC / SNAP / EAPOL EAP_PACKET / EAP / Padding
So my questions are
- What defines a send / receive pair in Scapy? Why is the EAP packet not an appropriate receive?
- Given a sniff() call directly after isn't seeing the EAP packet, what would be an appropriate way to receive it?
Cheers.