Closed rafaelsilva81 closed 1 year ago
Hi
The process is quite simple, as described in documentation
pcap.createOfflineSession('/path/to/capture.pcap', options);
No need to bother with binary parsing, decode.packet does it for you :)
Thibaut
That is awesome, thank you for the quick response and I apologize for not reading through the documentation. I ended up not noticing this part.
Thanks again 👍
The following doesn't work:
Since some typings are incomplete, I assumed pcap.decode.packet() received a Buffer object, but it apparently expects something else. I don't have enough knowledge of working with binaries in node, so if anyone can help find a solution it would be appreciated.