A simple PHP script to send UDP packets to a specified IP and port for stress testing your own hardware. Use responsibly!
This tool is intended for educational and testing purposes only. Do NOT use it for malicious activities. You are responsible for your own actions.
β Sends UDP packets to a specified IP and port β Allows custom packet size (1-65507 bytes) β User-defined duration for stress testing
Ensure you have PHP CLI installed. You can install it with:
For Debian/Ubuntu:
sudo apt update && sudo apt install php-cli -yFor CentOS/RHEL:
sudo yum install php-cli -yFor Windows:
- Download PHP from https://windows.php.net/download
- Extract and add PHP to your system PATH.
1οΈβ£ Run the script in a terminal:
php udp_stress_test.php2οΈβ£ Enter the required details:
- Server IP
- Server Port
- Duration (in seconds)
- Packet Size (1-65507 bytes)
3οΈβ£ The script will send UDP packets for the specified duration.
Enter Server IP: 192.168.1.1
Enter Server Port: 80
Enter Duration (seconds): 10
Enter Packet Size (1-65507): 1024
UDP stress test completed.
This script is provided as-is with no warranty. Use at your own risk. π οΈ