{"id":18709592,"url":"https://github.com/alex5402/udp_attack","last_synced_at":"2026-02-11T01:03:32.620Z","repository":{"id":257631040,"uuid":"856286120","full_name":"ALEX5402/UDP_ATTACK","owner":"ALEX5402","description":"This is a sample of how you can send multiple packates into a udp ip and port on c++ with multithreaded","archived":false,"fork":false,"pushed_at":"2024-09-19T15:00:28.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-05T09:37:47.486Z","etag":null,"topics":["didos","udp-attack","udp-flooding-tool"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ALEX5402.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"alex5402","buy_me_a_coffee":"alex5402","custom":["https://www.binance.com/en-IN/my/wallet/account/main/withdrawal/crypto/USDT","Binance__749326513"]}},"created_at":"2024-09-12T10:12:38.000Z","updated_at":"2025-05-05T13:02:42.000Z","dependencies_parsed_at":"2025-06-17T19:39:01.766Z","dependency_job_id":"d579999d-645f-4e0d-8162-15bd7eac5051","html_url":"https://github.com/ALEX5402/UDP_ATTACK","commit_stats":null,"previous_names":["alex5402/udp_attack"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ALEX5402/UDP_ATTACK","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALEX5402%2FUDP_ATTACK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALEX5402%2FUDP_ATTACK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALEX5402%2FUDP_ATTACK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALEX5402%2FUDP_ATTACK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ALEX5402","download_url":"https://codeload.github.com/ALEX5402/UDP_ATTACK/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALEX5402%2FUDP_ATTACK/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29323969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T00:34:26.354Z","status":"ssl_error","status_checked_at":"2026-02-11T00:34:09.494Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["didos","udp-attack","udp-flooding-tool"],"created_at":"2024-11-07T12:28:14.145Z","updated_at":"2026-02-11T01:03:32.594Z","avatar_url":"https://github.com/ALEX5402.png","language":"C++","funding_links":["https://github.com/sponsors/alex5402","https://buymeacoffee.com/alex5402","https://www.binance.com/en-IN/my/wallet/account/main/withdrawal/crypto/USDT","Binance__749326513"],"categories":[],"sub_categories":[],"readme":"# UDP Flood Tool\n\nThis is a simple multi-threaded UDP flood attack tool implemented in C++. It sends multiple UDP payloads to a specified IP address and port for a user-defined duration and number of threads.\n\n## Disclaimer\n\n**This tool is for educational and testing purposes only.** Unauthorized use of this tool may violate applicable laws. The author assumes no responsibility for any damage caused by misuse of this tool.\n\n## Features\n\n- Sends predefined UDP payloads to a specified IP address and port.\n- Multi-threaded to increase efficiency and load.\n- Customizable duration of the attack and number of threads.\n- Error handling for socket creation and data transmission.\n\n## Requirements\n\n- Linux-based system (due to use of `arpa/inet.h` and `sys/socket.h`)\n- C++11 or later (for multi-threading support)\n- GCC or any C++ compiler\n\n## How to Compile\n\nYou can compile the tool using `g++`:\n\n```bash\ng++ udp_flood.cpp -o udp_flood -lpthread (optional)\n```\n```bash\ng++ udp_flood.cpp -o udp_flood\n```\n## Usage\n\n```bash\n./udp_flood \u003cIP\u003e \u003cPort\u003e \u003cDuration (seconds)\u003e \u003cNumber of Threads\u003e\n```\n\n- `\u003cIP\u003e`: Target IP address (e.g., `192.168.1.1`).\n- `\u003cPort\u003e`: Target UDP port (e.g., `8080`).\n- `\u003cDuration\u003e`: Duration of the attack in seconds (e.g., `30` for 30 seconds).\n- `\u003cThreads\u003e`: Number of threads to use (e.g., `10` for 10 concurrent threads).\n\n### Example\n\n```bash\n./udp_flood 192.168.1.100 8080 60 5\n```\n\nThis will send UDP packets to IP `192.168.1.100` on port `8080` for 60 seconds using 5 threads.\n\n## Payloads\n\nThe tool sends the following UDP payloads to the target:\n\n```plaintext\n\\x08\\xb2\\x00\\x21\n\\x08\\xb2\\x00\n\\xD8\\x39\\x84\\x00\n```\n\nThese payloads can be customized directly in the source code in the `payloads[]` array.\n\n## Code Structure\n\n- **`send_udp_message()`**: Handles the creation of the socket and sending the payloads to the target IP and port. It also includes error handling for the `sendto()` function.\n- **`udp_flood_thread()`**: A wrapper for creating and managing threads to send UDP messages.\n- **`main()`**: Accepts command-line arguments, manages thread creation, and runs the UDP flood attack for the specified duration.\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex5402%2Fudp_attack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex5402%2Fudp_attack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex5402%2Fudp_attack/lists"}