简体   繁体   English

Impacket和dpkt发送功能?

[英]Impacket & dpkt sending features?

Is there any support for sending packets in impacket or dpkt libraries? 是否有支持在impacket或dpkt库中发送数据包?

I was able to find examples of sniffing, interpreting and constructing packets using these libraries, but they don't seem to support sending over network interfaces. 我能够找到使用这些库进行嗅探,解释和构造数据包的示例,但它们似乎不支持通过网络接口发送。

Ping example of impacket library uses standard socket library in python to send the packet. impacket库的Ping示例在python中使用标准套接字库发送数据包。 Any help would be great. 任何帮助都会很棒。 Thanks 谢谢

dpkt does not have any built-in way to send packets. dpkt没有任何内置的发送数据包的方式。 Once you construct the packet, you will need to use a RAW socket to send out packets. 构造数据包后,您将需要使用RAW套接字发送数据包。 Here is a good example, which shows you how to send a raw ICMP packet constructed using dpkt. 是一个很好的示例,向您展示了如何发送使用dpkt构建的原始ICMP数据包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM