C#利用SharpPcap发送以太网报文(以太网原始帧),可发送任意以太网帧

上传者: glen30 | 上传时间: 2021-05-14 14:20:43 | 文件大小: 332KB | 文件类型: RAR
C#利用SharpPcap发送以太网报文(以太网原始帧),软件基本流程:从文件读取要发送的帧内容,然后找到电脑上的以太网卡,接下来利用SharpPcap来循环发送。
vs2008工程,全部源代码,可编译和测试。
以太网帧内容可以自己构造任意的帧类型和内容;也可以使用wireshark抓包,然后利用本软件来重放。
wireshark抓包后取数据方法:在wireshark的收到的帧上点右键,选择 复制 -> 为一个HEX流,然后粘贴到一个空文件内,命名为packet.dat,这样本软件就会读取packet.dat内的内容并循环发送了。

文件下载

资源详情

[{"title":"( 23 个子文件 332KB ) C#利用SharpPcap发送以太网报文(以太网原始帧),可发送任意以太网帧","children":[{"title":"LldpSend.sln <span style='color:#111;'> 914B </span>","children":null,"spread":false},{"title":"LldpSend.suo <span style='color:#111;'> 7.00KB </span>","children":null,"spread":false},{"title":"LldpSend","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"PacketDotNet.xml <span style='color:#111;'> 465.39KB </span>","children":null,"spread":false},{"title":"SharpPcap.xml <span style='color:#111;'> 182.35KB </span>","children":null,"spread":false},{"title":"packet.dat <span style='color:#111;'> 723B </span>","children":null,"spread":false},{"title":"LldpSend.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"LldpSend.vshost.exe <span style='color:#111;'> 13.99KB </span>","children":null,"spread":false},{"title":"PacketDotNet.dll <span style='color:#111;'> 192.00KB </span>","children":null,"spread":false},{"title":"LldpSend.exe <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"SharpPcap.dll <span style='color:#111;'> 71.00KB </span>","children":null,"spread":false},{"title":"LldpSend.pdb <span style='color:#111;'> 17.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"dll","children":[{"title":"PacketDotNet.xml <span style='color:#111;'> 465.39KB </span>","children":null,"spread":false},{"title":"SharpPcap.dll.config <span style='color:#111;'> 492B </span>","children":null,"spread":false},{"title":"SharpPcap.xml <span style='color:#111;'> 182.35KB </span>","children":null,"spread":false},{"title":"PacketDotNet.dll <span style='color:#111;'> 192.00KB </span>","children":null,"spread":false},{"title":"SharpPcap.dll <span style='color:#111;'> 71.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 7.01KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"LldpSend.exe <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"ResolveAssemblyReference.cache <span style='color:#111;'> 5.89KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"LldpSend.pdb <span style='color:#111;'> 17.50KB </span>","children":null,"spread":false},{"title":"LldpSend.csproj.FileListAbsolute.txt <span style='color:#111;'> 496B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LldpSend.csproj <span style='color:#111;'> 2.90KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明