Artificial Intelligence
Please fill the required field.

@echo off color 0e chcp 65001 >nul title L0UDXY's High-Volume Ping Utility :setup cls mode con: cols=80 lines=25 echo. echo ========================================== echo = HIGH-VOLUME PING UTILITY v1.0 = echo =========


If you want to modify your batch file to send a higher number of packets than the typical limit, you can add a check to allow packets up to a maximum size. If more packets are specified than the OS allows to be sent in a single command or exceeds practical limits, you can split the number into multiple commands. However, the default maximum number of packets that can be sent in a single `ping` command is subjected to system limitations and the `PING` command itself on Windows. By default, the `ping` command is limited in how it processes large numbers of packets. For example, attempting to send more than 65500 bytes of data through an ICMP packet will not succeed. The below modification allows users to enter a packet count higher than the standard limit and will split the requests into separate batches. ```batch @echo off color 0e chcp 65001 >nul title L0UDXY's High-Volume Ping Utility :setup cls mode con: cols=80 lines=25 echo. echo ========================================== echo = HIGH-VOLUME PING UTILITY v1.0 = echo ========================================== echo. echo This tool sends a large number of ICMP echo echo requests to a target host to test echo network stability and latency. echo. echo ========================================== echo. set /p IP=Enter Target IP or Hostname: if "%IP%"=="" ( echo [!] No target entered. Please try again. timeout /t 3 >nul goto setup ) echo. set /p COUNT=Enter Number of Packets to Send (e.g., 65001): if "%COUNT%"=="" ( echo [!] No packet count entered. Defaulting to 10. set COUNT=10 ) REM Define maximum packets per batch set /a MAX_PACKETS=65500 set /a REMAINING_PACKETS=%COUNT% echo. echo [+] Preparing to send %COUNT% packets to %IP%... echo. timeout /t 3 >nul goto execute :execute cls title Pinging %IP% with %COUNT% packets... echo. echo ========================================== echo = HIGH-VOLUME PING UTILITY v1.0 = echo ========================================== echo. echo Target: %IP% echo Total Packets: %COUNT% echo. echo [+] PING TEST IN PROGRESS... echo [+] Press Ctrl+C to abort. echo. echo ----------------------------------------- echo. :ping_loop set /a BATCH_PACKETS=REMAINING_PACKETS>MAX_PACKETS ? MAX_PACKETS : REMAINING_PACKETS PING -n %BATCH_PACKETS% -l 1024 %IP% set /a REMAINING_PACKETS-=BATCH_PACKETS if %REMAINING_PACKETS% GTR 0 ( echo [+] Sent %BATCH_PACKETS% packets, %REMAINING_PACKETS% remaining... timeout /t 1 >nul goto ping_loop ) echo. echo ----------------------------------------- echo. echo [+] PING TEST COMPLETE. echo. pause goto setup ``` ### Explanation of Changes: 1. **Maximum Packets Check**: Introduced a variable `MAX_PACKETS` to limit each batch of pings. 2. **Loop Through Remaining Packets**: The script uses a loop (`:ping_loop`) to repeatedly send packets until all desired packets are sent. 3. **Dynamic Packet Count Handling**: It calculates how many packets to send each time and decrements the remaining count (`REMAINING_PACKETS`). ### Caution: Be careful when using high-volume pinging, as this could flood a network and disrupt services, violate usage policies, or result in actions taken against your access by network administrators or ISP. Always ensure you have permission to perform such tests on the network or host you are targeting.