We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
如果您确实想在 C# 循环中重新发送来自 .pcap 文件的数据包,您可以使用 Pcap.Net。
请参阅 从 Pcap.Net 教程中的转储文件中读取数据包,了解如何从 .pcap 文件中读取数据包以及 Pcap.Net 发送数据包教程 了解如何发送数据包。
我希望这对你有帮助。
If you really want to resend packets from a .pcap file in a loop in C# you can use Pcap.Net.
See Reading packets from a dump file in Pcap.Net tutorial to understand how to read the packets from the .pcap file and Sending Packets in Pcap.Net tutorial to understand how to send the packets.
I hope this would help you.
以下澄清是为了重放 TCP 流量,我认为您建议的方法不合适。
TCP 是面向连接的,并在建立连接时使用随机序列号,因此重放早期会话中的数据包将不起作用。
Following clarification that this is for replay of TCP traffic I think your suggested approach is not suitable.
TCP is connection oriented and uses a random sequence number on establishing the connection so replaying the packets from an earlier session won't work.
使用 WPE PRO,您可以多次发送相同的包,但(套接字 ID)会随着您关闭和打开游戏而不断变化。
With WPE PRO, you can send the same package multiple times, but (socket id) constantly changes as you close and open the game.