Get Clear contents inside TCP Packet

479 Views Asked by At

I try to get clear contents from a packet using SharpPcap.

Here is the code I have

var packet = PacketDotNet.Packet.ParsePacket(e.Packet.LinkLayerType, e.Packet.Data);
if (packet is PacketDotNet.EthernetPacket)
{
   if (packet.PayloadPacket.PayloadPacket.PayloadData != null)
   log.Info("Decode for PayloadData: " + System.Text.Encoding.Default.GetString(packet.PayloadPacket.PayloadPacket.PayloadData));

However, I cannot get the same contents inside WireShark. WireShark can exactly see the username/ciphered Password of the contents. I try to sniff the contents sent to MySQL Database.

What is actual in the WireShark:

WireShark

0

There are 0 best solutions below