Skip to content

Packet Capture Inconsistency #250

Open

Description

@edtguy

Is there a pcap error event I should be monitoring?
I thought I was successfully monitoring wifi traffic, but when I set up two identical devices side by side, I'm getting significantly different results from each device.
The core of the code is essentially the following:

const execSync = require('child_process').execSync
const cmd = `/sbin/ifconfig ${wifiAdapter} down; /sbin/iwconfig ${wifiAdapter} mode monitor; /sbin/ifconfig ${wifiAdapter} up`;
execSync(cmd)
const pcap = require('pcap')
const pcapSession=pcap.createSession(wifiAdapter,'wlan type mgt subtype probe-req')
pcapSession.on('packet',function(rawPacket){
    var packet = pcap.decode.packet(rawPacket)
    processPacketInfo(packet)
})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions