Skip to content

Unable to decode packets #265

@DarrenRainey

Description

@DarrenRainey

Currently I'm having the following error when ever I try to decode any packets:
I installed pcap via npm i pcap

/root/node_modules/pcap/decode/ieee802.11/radio_packet.js:86
            throw new Error('Radiotap Namespace / Vendor Namespace not implemented yet');
            ^

Error: Radiotap Namespace / Vendor Namespace not implemented yet
    at buildDecoder (/root/node_modules/pcap/decode/ieee802.11/radio_packet.js:86:19)
    at RadioPacket.decode (/root/node_modules/pcap/decode/ieee802.11/radio_packet.js:57:37)
    at PcapPacket.decode (/root/node_modules/pcap/decode/pcap_packet.js:46:54)
    at Function.decode [as packet] (/root/node_modules/pcap/decode/index.js:11:36)
    at PcapSession.<anonymous> (/root/test.js:8:26)
    at PcapSession.emit (events.js:198:13)
    at PcapSession.on_packet_ready (/root/node_modules/pcap/pcap.js:107:10)
    at PcapSession.session.read_callback (/root/node_modules/pcap/pcap.js:72:45)

This is the code I'm trying to test:

var pcap=require('pcap');
pcap.createSession("wlan0mon", '(type mgt) and (type mgt subtype probe-req )').
        on('packet', function (raw_packet) {
                with(pcap.decode.packet(raw_packet).link.ieee802_11Frame)
                        if (type == 0 && subType == 4)
                                console.log("Probe request",shost, "-> ",bssid);
        }
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions