Search code examples
linuxpcaptcpdump

How to read a pcap file and save the data using cli?


I can write a program which does it, but actually, is there a way to do it in one liner from cli? I don't care about the time it takes, I prefer to have some standard solution instead of developing and to maintain my code. By data I mean everything after the transport header, without exceeding the packet boundaries.


Solution

  • Take a look here

    I used this this

    tcpick -yR -r file.pcap