originally posted in:BungieNetPlatform
View Entire Topic
Hey guys,
just wanted to let you guys know that it is possible to login using only Node.js WITHOUT any application dependencies. For this we use the Zombie npm module and Facebook as Auth Provider.
[b]Requirements:[/b]
- Facebook Login
- Bungie already granted permissions on the FB account
- Node.js
Step 1: If you don't already have node installed, install node (duh!).
Step 2: Create a new directory for your project.
Step 3: npm init, just enter through all the questions.
Step 4: npm install zombie --save
Step 4b: If you want to get fancy, you can also install request and tough-cookie to piggyback on zombies cookies and use regular requests.
Step 5: Paste the following code into index.js : http://pastebin.com/tw5JpL61 (Note: I wrote this in the pastebin itself, it might have syntax errors)
Step 6: Run the code using node index.js and check if you get the bungleatk token at the end.
Optional: If you want you can now piggyback on the cookies and use browser.windows.close to close the window.
Happy Hacking,
Sargo
English
#programming
-
I do something similar with my [url=http://www.bungie.net/en/Profile/254/4389422]bot account[/url] in C# and PHP just by managing the cookies.