Wireshark does not read padding
I use Scapy to read packet and apply encryption to payload and write the new packet to a pcap file. When I read the new packet using Scapy, I can see the TCP payload size is 304 bytes. But Wireshark only shows the TCP payload size 301 bytes. Interesting that the original packet's tcp payload size is 301 bytes and the AES encryption adds 3 bytes padding to make it 304 bytes(multiple of 16 bytes), and Wireshark does not show the extra 3 bytes added by the padding. Any ideas?
Thanks!
Was
ip.len
updated in the new packet?Can you share the pcaps?
Yes I did update ip.len which has the correct value 344. Everything looks good to me on Scapy. But Wireshark displays a red line on packet length as the value is 344 but the actual length to it is 341..
Sorry I cannot upload the pcap as I don't have 60 points :(
This is what Scapy sees:
(more)Upload the capture to a public share, e.g. Google Drive, DropBox etc. and post a link to the file back here.
https://drive.google.com/file/d/1Vut0...
Please see the packet #6 in question.
Thanks!