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.

  • Mniot@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 hours ago

    Who wrote these regex? They are terrible:

    • We’ve got a capture-group for the numbers (the () means we’re saving that part for later). Are we planning to do something with the mlg numbers? Why don’t we care about the mmmberry numbers?
    • The capture is one or more numbers, but then it’s an optional group. Write ([0-9]*) instead
    • We match mlg and mlg1 but not mlga because we anchor to the end ($). But not on mmmberry–that one will match “mmmberry5” (but we don’t track the number!) but also “mmmberry_is_the_worst” so the enemy of my enemy is also my enemy because they share a prefix

    Maybe mlg has sock-puppet accounts mlg1, mlg2, but never MLG?

    • Die4Ever@retrolemmy.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 hour ago

      I wouldn’t be shocked if he just pointed an LLM at a dump of posts and comments and asked it to write a list of regexes for stuff he doesn’t like