this post was submitted on 29 Apr 2025
553 points (97.4% liked)

Technology

69600 readers
4135 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
 

The one-liner:

dd if=/dev/zero bs=1G count=10 | gzip -c > 10GB.gz

This is brilliant.

(page 2) 50 comments
sorted by: hot top controversial new old
[–] deaddigger@lemm.ee 22 points 2 days ago (3 children)

At least in germany having one of these on your system is illegal

[–] dzso@lemmy.world 13 points 2 days ago (10 children)

Out of curiosity, what is illegal about it, exactly?

load more comments (10 replies)
[–] lka1988@lemmy.dbzer0.com 9 points 2 days ago (1 children)

Maybe bots shouldn't be trying to install malicious code? Sucks to suck.

Still illegal. Not immoral, but a lot of our laws aren't built on morality.

[–] raltoid@lemmy.world 2 points 2 days ago

Illegal to publically serve or distribute.

[–] comador@lemmy.world 25 points 2 days ago* (last edited 2 days ago)

Funny part is many of us crusty old sysadmins were using derivatives of this decades ago to test RAID-5/6 sequencial reads and write speeds.

[–] billwashere@lemmy.world 4 points 2 days ago

I want to know he they built that visualization

[–] melroy@kbin.melroy.org 12 points 2 days ago (1 children)
[–] melroy@kbin.melroy.org 11 points 2 days ago (1 children)

Looks fine to me. Only 1 CPU core I think was 100%.

10+0 records in
10+0 records out
10737418240 bytes (11 GB, 10 GiB) copied, 28,0695 s, 383 MB/s
[–] melroy@kbin.melroy.org 11 points 2 days ago (1 children)

ow.. now the idea is to unzip it right?

nice idea:

if (ipIsBlackListed() || isMalicious()) {
    header("Content-Encoding: deflate, gzip");
    header("Content-Length: "+ filesize(ZIP_BOMB_FILE_10G)); // 10 MB
    readfile(ZIP_BOMB_FILE_10G);
    exit;
}
[–] mbirth@lemmy.ml 7 points 2 days ago

Might need some

if (ob_get_level()) ob_end_clean();

before the readfile. 😉

[–] UnbrokenTaco@lemm.ee 6 points 2 days ago (1 children)

Interesting. I wonder how long it takes until most bots adapt to this type of "reverse DoS".

Then we'll just be more clever as well. It's an arms race after all.

[–] Kolanaki@pawb.social 4 points 2 days ago* (last edited 2 days ago)

How I read that code:

"If the dev folder's bullshit is equal to 1 gram..."

load more comments
view more: ‹ prev next ›