Skip to content

Instantly share code, notes, and snippets.

@Richienb
Last active January 14, 2023 21:07
Show Gist options
  • Save Richienb/cd250cbb915acdfa04e8b1a527b71379 to your computer and use it in GitHub Desktop.
Save Richienb/cd250cbb915acdfa04e8b1a527b71379 to your computer and use it in GitHub Desktop.
Automatic Data Waster

Since creating this tool, I've created a web equalivent here.

Automatic Data Waster

What is this?

This is a Windows Batch File script which will constantly download and delete a 1GB file.

What do I need?

  • A computer running Windows (to execute the script)
  • An internet connection (the one you want to waste)
  • CURL (easiest installation is will Chocolatey: choco install curl)

How do I use it?

  1. Download the script (Using CURL: curl -L -o "Data Waster.bat" https://gist.githubusercontent.com/Richienb/cd250cbb915acdfa04e8b1a527b71379/raw/5248c10420bb6580f464689960e91708ea41a6fe/Data%2520Waster.bat)
  2. Run the script
  3. Your internet will now be forever wasted (until you close the commandline window)

What happens if I terminate the script

In short, nothing bad will happen

There will likely be a file which is named something like largefile-1488 in the execution directory. You will need to delete this file to clean up.

@echo off
title Data Waster
cls
echo Welcome to data waster!
echo.
echo Generating random file name...
:rand
set FILENAME=largefile-%RANDOM%
if exist %FILENAME% goto rand
echo.
:gen
echo Downloading Large File...
curl -L -o %FILENAME% http://ipv4.download.thinkbroadband.com/1GB.zip
echo Deleting Large File...
del /f %FILENAME%
echo.
goto gen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment