First time here? Check out the FAQ!
answered Nov 8 '17
Have you tried using Tshark? https://www.wireshark.org/docs/man-pages/tshark.html
I am not sure what you mean by "export only packet bytes"? Do you mean TCP Length or the actual payload.