Advertisement
Guest User

Untitled

a guest
Jan 25th, 2018
1,582
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. /**************** DISCORD DISCRIM CHANGER ****************/
  2. // because screw discord
  3.  
  4. /* INSTRUCTIONS */
  5.  
  6. /* LOG INTO DISCORD WEB APP (YES, WEB APP, NOT DESKTOP APP). IT'S BEST TO USE GOOGLE CHROME WITH THIS,
  7. AS WE'LL NEED TO FIND OUR AUTH TOKEN AND THAT WILL BE A BIT OF MANUAL WORK.
  8. THE AUTH TOKEN IS LIKE THE KEY TO YOUR ACCOUNT SESSION, SO DO NOT SHARE IT WITH ANYONE.
  9.  
  10. READY? ONCE YOU ARE IN THE DISCORD WEB APP (https://discordapp.com),
  11. PRESS CONTROL + SHIFT + I, -- OR -- F12. FROM THE PANEL THAT OPENS, GO TO "APPLICATION" TAB,
  12. THEN GO TO "LOCAL STORAGE" ON THE LEFT, EXPAND IT, CLICK THE DISCORDAPP.COM CATAGORY,
  13. AND THEN COPY THE VALUE OF THE "TOKEN" VARIABLE WHICH SHOULD BE AT THE VERY BOTTOM.
  14. PASTE IT HERE, WITHOUT THE DOUBLE-QUOTES */
  15.  
  16.  
  17. var discordToken = 'PUT_YOUR_TOKEN_HERE_WITHOUT_DOUBLEQUOTES';
  18.  
  19. /* NOW PREPARE YOUR DESIRED DISCRIM, CURRENT USERNAME, EMAIL, AND PASSWORD.
  20. GO BACK TO CHROME, FIND "CONSOLE", GO TO THE VERY BOTTOM WHERE YOU CAN TYPE STUFF IN.
  21. THEN COPY AND PASTE THIS WHOLE FILE INTO IT.
  22. DON'T TRUST THIS? LOOK OVER THE SOURCE CODE YOURSELF. I COMMENTED EVERY LINE. IT'S NOT BACKDOORED IN ANY WAY.
  23. STILL DON'T TRUST THIS? THEN WAIT FOR DISCORD TO RELEASE IT OFFICIALLY :P */
  24.  
  25. /*************** PROGRAM START. DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU'RE DOING. FOLLOW THE ON-SCREEN PROMPTS. ***************/
  26.  
  27. // Get User's Discrim
  28. var discrim = window.prompt("Welcome to Ninja's Discord Discrim changer for NITRO users only!", "Enter Discrim Here...");
  29. // Get User Discord Name
  30. var ign = window.prompt("Enter Discord Username (WITHOUT DISCRIM)", "Ninja");
  31. // Get User Email
  32. var email = window.prompt("Enter Discord Email", "[email protected]");
  33. // Get User Password
  34. var password = window.prompt("Enter Discord Password", "password");
  35. // Verify with user
  36. alert("You chose the discrim: " + discrim + ". Press OK to change.");
  37.  
  38. // Create a new web request
  39. xhr = new XMLHttpRequest();
  40. // Set our target URL to Discord's settings endpoint
  41. var url = "https://discordapp.com/api/v6/users/@me";
  42. // Open the request to the URL, making it a PATCH request.
  43. xhr.open("PATCH", url, true);
  44.  
  45. // Make it a JSON request
  46. xhr.setRequestHeader("Content-type","application/json");
  47. // Set our Discord token that we got earlier as the Auth header to the request
  48. xhr.setRequestHeader("Authorization", discordToken);
  49.  
  50. //What to do when Discord replies... this is a callback function. The program won't stop here right away.
  51. xhr.onreadystatechange = function () {
  52. // Check if 1) the request is ready and 2) it went through successfully (status code 200)
  53. if (xhr.readyState == 4 && xhr.status == 200) {
  54. // Log to console for debug purposes
  55. console.log(xhr.responseText);
  56. }
  57. }
  58.  
  59. // Finally, send our request (it will reset the avatar for now unfortunately)
  60. xhr.send('{"username":"' + ign + '","email":"' + email + '","password":"' + password + '","avatar":null,"discriminator":"' + discrim + '","new_password":null}');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement