Hacker News new | ask | show | jobs
Spin the IKAT Christmas Pyramid with Your Clicks – TU Chemnitz Celebrates (tu-chemnitz.de)
42 points by trojan13 915 days ago
6 comments

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)}

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

The server is struggling: Fehler: SQLSTATE[HY000] [1203] User silvester already has more than 'max_user_connections' active connections
User silvester had better rig up a connection pooler next time ;)
I think the bearings are wearing out.
Who's got a botnet and is willing to create some chaos?
Home town! Nice to see the candle arch btw :-D
C'mon i wanna see at least 600 RPM!