如何在 scapy 中多次发送一个 udp 数据包? [英] how to send one udp packet multiple time in scapy ?
本文介绍了如何在 scapy 中多次发送一个 udp 数据包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 scapy 中多次发送一个 udp 数据包?我需要多次发送一个有效的 udp 数据包.scapy 有什么具体的方法或功能吗?
How to send one udp packet multiple time in scapy ? I need to send,an valid udp packet more than one times. Is there any specific method or function in scapy ?
推荐答案
给你:
sendp(p, iface=eth0, inter=1 , count=x )
其中 p
是您的数据包或数据包列表,count
是重复发送操作的次数.
Where p
is your packet or a list of packets and count
is the number of times to repeat the send operation.
另请查看相应的文档scapy.sendrecv 命名空间参考.
这篇关于如何在 scapy 中多次发送一个 udp 数据包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文