cap
cap copied to clipboard
A cross-platform binding for performing packet capturing with node.js
With Wireshark, I capture a websoket packet with the below code var device = Cap.findDevice('192.168.1.161'); var filter = 'tcp and dst port 54592'; Now I have hex stream of a...
Hello! I noticed that I can't capture traffic for some interfaces (like VPN connections). Is it supported? Output from [systeminformation](https://www.npmjs.com/package/systeminformation): ```json [ { "iface": "Ethernet", "ip4": "10.190.201.120", "ip6": "fe80::4857:7b9f:5352:126e", "mac":...
Hello, i use your package but i need to read pcap trace file instead of real time capture. Is it possible?
How can I get the timestamp of the packet without having to instance a new Date object?
Fix: #90 I had already npcap installed on my computer with wireshark but without compatibility mode... I thought I already have it (and when I read the readme, i didn't...
Win10, npcap-0.9991, dhcp network (no ip) Tried every device in deviceList, same result with no packet capture. ```js var Cap = require('cap').Cap; var device = Cap.deviceList()[2].name; // physical realtek card...
I'm using Microsoft Windows 10, and I would like to capture some specific tcp packets and replay the captured traffic. But I failed to compile tcpreplay on my pc because...
It seems this applies here too: https://github.com/node-pcap/node_pcap/issues/255 (by the way, is this a fork of node-pcap, or the other way around?)
``` node: …/src/binding.cc:186: static void Pcap::cb_packets(uv_poll_t*, int, int): Assertion `status == 0’ failed. ``` I think, socket errors need to be properly handled similar to the cases reported earlier. See...