write-ups-challenges-2020-2021/gotta_catch_em_all/bliep.md

13 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2022-11-24 17:03:20 +00:00
# Gotta Catch 'em All! (Really Fast)
## Text
I am an aspiring new Pokémon trainer that is ready to explore the world and catch many Pokémon. Unfortunately, due to the COVID pandemic, everything will be going digital now. Professor Oak made us a game to play instead, and developed this Pokédex website to register all the Pokémon we caught in the game.
Gary, my rival, bragged to me that he managed to complete the entire Pokédex in under a minute. He probably didn't play the game at all and just selected all the Pokémon on the Pokédex. Whatever the case may be, I intend to beat him, legitimately or not.
The website is connected to a NodeJS backend with a web socket that keeps track of the Pokédex and its completion. Somehow, I must fool the backend that I captured all Pokémon in an insanely fast time, without looking too suspicious. And knowing Professor Oak's programming skills and the fact that its written in JavaScript, there's probably some kind of vulnerability I can abuse.
## Deployment
For the backend: node index.js
For the frontend: Just run it in a http server, for example using http-server (https://www.npmjs.com/package/http-server) which deploys all files in the directory it is called