Open 4rzael opened 9 years ago
I installed node_pcap from the git repository, and I don't get the error anymore.
I still get the IPv4 warning though, and every packet I receive (I'm monitoring with a wifi dongle) looks like this:
{ link_type: 'LINKTYPE_IEEE802_11_RADIO',
pcap_header: { tv_sec: 1445872207, tv_usec: 619969, caplen: 120, len: 120 },
payload:
{ emitter: undefined,
headerRevision: 0,
headerPad: 0,
headerLength: 36,
signalStrength: 0,
frequency: 22551,
antenna: undefined,
ieee802_11Frame:
{ emitter: undefined,
frameControl: 4160,
version: 0,
type: 0,
subType: 4,
flags: [Object],
duration: 0,
bssid: [Object],
shost: [Object],
dhost: [Object],
fragSeq: 45065,
beacon: undefined,
llc: undefined,
probe: [Object] },
presentFields:
{ tsft: true,
flags: true,
rate: true,
channel: true,
fhss: false,
signalStrength: true,
signalNoise: false,
lockQuality: false,
txAttenuation: false,
dbTxAttenuation: false,
dbmTxPower: false,
antenna: false,
dbAntennaSignal: false,
dbAntennaNoise: false,
rxFlags: true },
signalNoise: undefined },
emitter: undefined }
The emitter is always undefined, the signal strength 0, the bssid {255, 255, 255, 255, 255}
, etc ...
The only things changing in the payload are the frequency, the fragSeq and the frameControl.
It would be great to see movement in properly decoding IEEE802_11_RADIO packets! I'm getting the same issue as well.
However, I can confirm installing from GitHub takes care of the "Undefined is not a function" problem. I am also noticing that it SEEMS to decode IP traffic decently. Maybe not the management packets as stated above. I haven't gotten to test that part too much.
I'm trying to use node_pcap in order to replace an airodump-ng wrapper.
I set my interface in monitor mode with airmon-ng.
Then, when I try to record with node_pcap, iget this error:
Here's my code:
When I try to use airodump-ng instead, it works.
Any ideas how to fix this ? (and why do we need an IP to scan probe requests ?)
I'm on debian Jessie ARM, node v0.10.40, node_pcap v^2.0.1 (installed with npm)