python版DDOS攻击工具脚本
代码中有注释说明
#! /usr/bin/env python
# -*- coding: UTF-8 -*-
from redis import Redis
import time
from gurd import *
rdb = Redis("127.0.0.1")
vips = {}
def setOffset(offset):
keys = rdb.keys("*")
min = offset
for key in keys:
if key=="offset":
continue
elif int(key)
rdb.set("offset",min)
time.sleep(5)
def main():
icmp = {}
udp = {}
http = {}
syn = {}
count = 0
offset = int(rdb.incr("offset"))-1
data = rdb.hgetal
共有 0 条评论