Attention! For testing purposes only, please do not maliciously consume someone else's VPS traffic.#
This script is tested on Debian & Ubuntu.
- Install aria2c
sudo apt install aria2
- Create a Bash script
vim download.sh
Paste the following content
#!/bin/bash
count=0
while true
do
count=$((count + 1))
echo "Count: $count"
#wget http://mirror.nl.leaseweb.net/speedtest/10000mb.bin -O /dev/null
aria2c -d /dev -o null --allow-overwrite=true -x 5 Paste a large file link here --file-allocation=none --header 'user-agent: chrome'
sleep 1
done
Please modify and replace "Paste a large file link here"
3. Add executable permission to the script
chmod +x download.sh
- Execute the script
./download.sh
The effect is as shown in the image