banner
DarianBlog

DarianBlog

达里安博客-专注于技术分享与交流的博客。博客致力于创造一个简单而直接的技术学习平台。
email

Crazy Traffic Consumption Script

Attention! For testing purposes only, please do not maliciously consume someone else's VPS traffic.#

This script is tested on Debian & Ubuntu.

  1. Install aria2c
sudo apt install aria2
  1. 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
  1. Execute the script
./download.sh

The effect is as shown in the image

Screenshot_20240104114719

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.