hexene/LocalVPN

How to write a .pcap log ?

Closed this issue · 2 comments

Hi, i would know one information, after the capturing of the packets i need to write a log in .pcap file, because i need to analyse the traffic on a certain website.

Example:
Android app --> Capture traffic ---> Log .pcap --> Conversion in .har

So, my question is: using your code how i can create a log (.pcap) ?

Best Regards

You'll either have to convert the packet data to the pcap format yourself or use a library like jnetpcap.

@hexene could you explain to me how i can convert the packet data to the .pcap ?

In which part of code I can get the information (packages) that i must save to create a log ?