I build small python script DDOS syn flooding you can modify my script.
Ok i will share a article on thepythoncode. A SYN flood attack is a common form of a denial of service attack in which an attacker sends a sequence of SYN requests to the target system (can be a router, firewall, Intrusion Prevention Systems (IPS), etc.) in order to consume its resources, preventing legitimate clients to establish a normal connection. TCP SYN flood exploits the first part of the TCP three-way handshake, and since every connection using the TCP protocol requires it, this attack proves to be dangerous and can take down several network components. In order to understand SYN flood, we first need to talk about TCP three-way handshake:
When a client wants to establish a connection to a server via TCP protocol, the client and server exchanges series of messages:
- The client requests a connection by sending SYN message to the server
- The server responds with SYN-ACK message (acknowledges the request)
- The clients responds back with an ACK, and then the connection is started
SYN flood attack involves a malicious user that sends SYN packets repeatedly without responding with ACK, and often with different source ports, which makes the server unaware of the attack, and responds to each attempt with a SYN-ACK packet from each port (The red and green part of the above image). In this way, the server will quickly be unresponsive to legitimate clients.
Windows & Linux
git clone /~https://github.com/galihap76/python-ddos.git
Termux
You need a root on your termux.
- pkg update && pkg upgrade
- pkg install python3
- pkg install git
- git clone /~https://github.com/galihap76/python-ddos.git
- cd python-ddos
- python3 main.py -d (ip target) -p (port target)
Windows
main.py -d <ip target> -p <port target>
Linux
python3 main.py -d <ip target> -p <port target>
If you familiar with software NMAP you can detect on vulnerability target.
Command To Detect Vulnerability
nmap -Pn --script vuln <ip target>
Command To Detect Dos Attack
nmap --script dos -Pn <ip target>
You can see on nmap documentation.
If you want do attack ddos on website first i recommend you to need learn networking.