Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options Not being set correct #5

Open
derekpanderson opened this issue Apr 7, 2016 · 1 comment
Open

Options Not being set correct #5

derekpanderson opened this issue Apr 7, 2016 · 1 comment
Assignees

Comments

@derekpanderson
Copy link

I don't believe 802.11 packets are being handled correctly. I included some test code below, when I run it on my machine I always get subype 0 and either '' or None for ssid. I know the subtype is wrong because the subtype set on a probe request is always 4. TCPDump also confirms the values are wrong.

http://www.wildpackets.com/resources/compendium/wireless_lan/wlan_packet_types

from cycapture.libpcap import BlockingSniffer
from cycapture.libtins import EthernetII, Dot11, Dot11ProbeRequest
sniffer = BlockingSniffer(interface="wlan1", monitor_mode=True)

f = lambda mview: Dot11ProbeRequest.from_buffer(mview)
with sniffer.iterator(f=f) as i:        # parse the packets using libtins
    for ts, ts_ms, length, dot11_pdu in i:
        print dot11_pdu.subtype, dot11_pdu.ssid
@stephane-martin stephane-martin self-assigned this Apr 10, 2016
@stephane-martin
Copy link
Owner

hi,
have you tried to set the datalink type to something like DLT_IEEE802_11 ?

sniffer.datalink = BlockingSniffer.DLT.DLT_IEEE802_11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants