https://github.com/b3ta-blocker/ip-flooder
This repo contains a Bash script to perform SYN flood attacks on local network hosts using hping3 and ipcalc. Perfect for network testing and education.
https://github.com/b3ta-blocker/ip-flooder
cybersecurity ddos-attacks hping3 ip-attack ipcalc linux local-network network-security network-testing penetration-testing syn-flood
Last synced: 6 months ago
JSON representation
This repo contains a Bash script to perform SYN flood attacks on local network hosts using hping3 and ipcalc. Perfect for network testing and education.
- Host: GitHub
- URL: https://github.com/b3ta-blocker/ip-flooder
- Owner: B3TA-BLOCKER
- License: mit
- Created: 2024-06-13T21:24:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-11T08:24:36.000Z (almost 2 years ago)
- Last Synced: 2024-12-29T06:16:06.194Z (over 1 year ago)
- Topics: cybersecurity, ddos-attacks, hping3, ip-attack, ipcalc, linux, local-network, network-security, network-testing, penetration-testing, syn-flood
- Language: Shell
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
[](https://git.io/typing-svg)
This script is a powerful tool to perform SYN flood attacks on specified target hosts within your local network. Leveraging hping3 for the flood attack and ipcalc to ensure target IPs are valid, it gives you a glimpse into the world of network testing.
---
## 🛠️ Prerequisites
Before running this script, ensure you have the following installed on your system:
- `hping3` 📡
- `ipcalc` 🔍
Install these tools using your package manager.
### Linux (Ubuntu/Debian)
```sh
sudo apt-get install hping3 ipcalc
```
### Windows
On Windows, you can use `choco` (Chocolatey package manager) to install `hping3`. `ipcalc` is not available directly via `choco`, but you can use other similar tools or install it manually via a Linux subsystem like WSL.
1. **Install Chocolatey** (if not already installed):
```sh
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
```
2. **Install hping**:
```sh
choco install hping
```
For `ipcalc`, you might want to use a different approach or run it under WSL (Windows Subsystem for Linux).
### macOS
Using Homebrew, the macOS package manager:
```sh
brew install hping ipcalc
```
If `ipcalc` is not available directly via Homebrew, you can install `ipcalc-ng` as an alternative:
```sh
brew install ipcalc-ng
```
---
## 🚀 Usage
1. **Clone the repository**:
```sh
git clone https://github.com/B3TA-BLOCKER/IP-Flooder.git
```
2. **Navigate to the project directory**:
```sh
cd IP-Flooder
```
3. **Make the script executable**:
```sh
chmod +x main.sh
```
4. **Run the script**:
```sh
sudo ./main.sh
```
## 💻 Script Details
### Description
This script performs the following steps:
1. **Get Local Network Information** 🌐:
- Retrieves the local IP address and determines the subnet (assuming a /24 subnet).
2. **Prompt for Target Hosts** 🎯:
- Asks the user to enter the target IP addresses separated by spaces.
3. **Validate and Attack** ⚔️:
- For each entered IP address, the script checks if the IP is within the local subnet.
- If the IP is valid, it initiates a SYN flood attack using `hping3` and logs the output to a file named after the target IP.
- If the IP is not within the local network, it notifies the user.
4. **Wait for Attacks to Complete** ⏳:
- The script waits for all initiated attacks to complete before exiting.
---
## ⚠️ Important Notes
- **Caution**: SYN flood attacks can cause network disruptions and are considered malicious activity. Use this script responsibly and only in environments where you have explicit permission to perform such actions.
- **Permissions**: The script uses `sudo` to run `hping3`. Ensure you have the necessary permissions to execute commands with `sudo`.
- **Logging**: Each attack's output is logged to a file named after the target IP address, e.g., `192.168.1.1_attack.log`.
---
## 📝 Disclaimer
**This script is provided for educational purposes only. The author is not responsible for any misuse or damage caused by using this script.**
---
## 🛡️ License
This project is licensed under the [MIT License](LICENSE).
---
## 📞 Contact
For support or questions, feel free to reach out:
- **GitHub Profile**: [B3TA-BLOCKER](https://github.com/B3TA-BLOCKER)
- **Email**: hassaanalibukhari@gmail.com
---