问题描述
我正在使用SharpPcap库来嗅探特定设备上的数据包.我以前从未真正使用过原始套接字,有些困惑.我很好地捕获了数据包,但是现在我想将数据包数据解码为可读的字符串.基本上,我要实现的是读取正在发送和接收的原始HTML请求.
我收到的数据是一个byte [],并且我已经尝试使用提供的.Net方法将所有基本byte []转换为字符串方法.如果曾经使用SharpPcap的人做到了这一点,还是有人知道该怎么做?
预先感谢,
-Dom
Hi,
I am using the SharpPcap library to sniff packets on a particular device. I have never really worked with raw sockets before and am a bit confused. I am capturing the packets fine, but now I want to decode the packet data into a string that is readable. Basically, what I want to achieve is reading the raw HTML requests that are being sent and received.
The data I receive is a byte[], and I have tried all of the basic byte[] to string methods with the .Net methods provided. If someone who has used SharpPcap achieved this, or does someone know how to do this?
Thanks in advance,
-Dom
推荐答案
这篇关于使用SharpPcap解码数据包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!