1254
submitted 1 day ago by Quokka@quokk.au to c/fediverse@lemmy.world

As part of the devs farewell message on their site, they have included malicious code to make each visitor sends 2,000 requests to the dbzer0 servers in an attempt to DDOS and take the instance offline.

you are viewing a single comment's thread
view the rest of the comments
[-] HereIAm@lemmy.world 7 points 1 day ago

That would make sense, but the "+ 1 - 1" both inside the patenethis don't, as he also has the "+ 1" outside. I assume ( making an ass of me along the way) he tried to write the formula you described from memory, but cocked it up a bit.

[-] aura@lemmy.dbzer0.com 10 points 1 day ago

it's not exactly the formula i posted but the principle is kinda the same

if u see it like this:

let min = 1
let max = 100
let random = Math.floor(Math.random() * (max - min + 1)) + min

the diff is that it's inclusive of max (bc of +1) and it always returns an integer (bc of Math.floor)

btw not defending this abomination of a man in javascript language or anything lol

[-] HereIAm@lemmy.world 3 points 1 day ago

I can see the logic in that ๐Ÿ™‚

this post was submitted on 27 Jul 2026
1254 points (100.0% liked)

Fediverse

43158 readers
1034 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, Mbin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration)

founded 3 years ago
MODERATORS