This is probably off-topic for this subforum, but as there isn’t an off-topic subforum, I figured this’d be the best place. Please let me know if that isn’t the case.
I bought the game today, and I was hoping to get the username Indy.1337, so I wrote a node.js script to do that. Unfortunately, I didn’t realize until after I wrote the script that the server would never return 1337, because it only returns codes without duplicate digits.
This script uses the fact that many email providers (gmail in particular) will ignore any extra dots in email addresses, so script uses permutations of your email address (which will still end up leading to your inbox) while giving you many codes to choose from.
The script accepts an array of codes, your email, your username, and scrapes the server in search of codes in the array.
Screenshot: https://cdn.mediacru.sh/3QrCt6IN7WLE.png
Code: http://pastebin.com/NynXvViT
The script is full of bugs, so feel free to add any patches~ I didn’t think I’d be releasing it, so the quality of the code probably shows that. Particularly, the permutations of emails are poorly written (L49-76), but it’s a proof-of-concept, at least.
After writing the script, I ended up using 2.718 (e) for my code, as 3.141 (pi) would have been impossible. (3.142 would have worked, though)
Ehh… any thoughts will be appreciated.
(perhaps an admin wants to give me Indy.1337 for effort?~)