mscdex / cap

A cross-platform binding for performing packet capturing with node.js
MIT License
361 stars 45 forks source link

It's possible to get packets from loopback interface on windows? #87

Closed Giuan0 closed 5 years ago

mscdex commented 5 years ago

If you install npcap with the loopback support option during its installation, you might be able to select the loopback interface that is created. cap.deviceList() should show it if it exists.

Giuan0 commented 5 years ago

The loopback interface has a link of type of NULL instead of 'ETHERNET' on windows, wich had 4 bytes, since I'll only be getting IPV4 protocols for my usecase, jumping the first four bytes will be ok.

Thanks!