Account number scraper

Account number scraper

in API Development

Posted by: Indy.2718

Indy.2718

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?~)

e = 2.718

Account number scraper

in API Development

Posted by: Drakma.1549

Drakma.1549

wut?

Account number scraper

in API Development

Posted by: Samuirai.4561

Samuirai.4561

Account number scraper

in API Development

Posted by: StevenL.3761

StevenL.3761

I wouldn’t say stolen. Perhaps inspired by. The code is not similar enough to state that @Indy even knew this blog post existed before writing his own version.

Regardless, we have little use for this stuff on these forums. I’d be much more interested to see what other sorts of cool stuff you can do with Node.js, but this time targeting the official APIs.