Hacker News new | ask | show | jobs
by NegativeLatency 915 days ago
I wonder what the rotational speed limit (if any is) really hoping to see some mayhem but there don't seem to be enough clicks at the moment.

there's an interesting function `executePHP` tied to the onclick of the button:

let go = () => { executePHP(); console.log("doing it"); setTimeout(go(), 1000)}

3 comments

They seem to do some rate limiting, if you are sending requests too quickly, the request to write_db2.php usually returning nothing starts returning Christmas greetings.

  while true;
    do curl 'https://www.tu-chemnitz.de/mb/mp/weihnachten2023/write_db2.php' \
      -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:120.0) \Gecko/20100101 Firefox/120.0' \
      -H 'Accept: */*' \
      -H 'Accept-Language: en-US,en;q=0.5' \
      -H 'Accept-Encoding: gzip, deflate, br' \
      -H 'Referer: https://www.tu-chemnitz.de/mb/mp/weihnachten2023/' \
      -H 'DNT: 1' \
      -H 'Connection: keep-alive' \
      -H 'Sec-Fetch-Dest: empty' \
      -H 'Sec-Fetch-Mode: cors' \
      -H 'Sec-Fetch-Site: same-origin';
  done
Lol did the same, but it quickly returns "Wir wünschen frohe Weihnachten" if you go too fast...

I guess many people are trying to automatize... here the last outputs:

    Fehler:  Fehler:
    Fehler:  
    in the last 10 seconds: 199 
    in the last 10 seconds: 207 
    in the last 10 seconds: 144 
    in the last 10 seconds: 113  Wir wünschen frohe Weihnachten.
    in the last 10 seconds: 27
Don't be on the naughty list, add a `sleep 2`
Don't call the go() function in setTimeout(), just pass go as reference.

Because otherwise you'll bomb the recursion stack.

> Don't call the go() function in setTimeout(), just pass go as reference.

And don't collect $200