Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
1,068
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. var SteamCommunity = require('steamcommunity');
  2. var ReadLine = require('readline');
  3. var fs = require('fs');
  4.  
  5. var request = require("request");
  6.  
  7.  
  8. var community = new SteamCommunity();
  9.  
  10. var cnt = 0;
  11.  
  12. var targetUser = "correctanswer"; // account you want to steal the id to
  13. var targetPass = "series244"; // account's password
  14. var apiKey = "544DF778DCEE085BD03271941777F35B"; // Steam dev api key here only requires one pBypasses
  15. var pDelay = 10; // Mess around yourself nigga aint gonna spoonfeed you everything delay is in ms
  16. var debug = 1; // Ignore dis unless you wanna see count of requests 0 = off 1 = on
  17.  
  18.  
  19. var targetID = "daddystoorm"; // id you're trying to beam cuz ur a megafaggot
  20.  
  21. var targetString = "No match";
  22.  
  23. var rl = ReadLine.createInterface({
  24. "input": process.stdin,
  25. "output": process.stdout
  26. });
  27.  
  28. doLogin(targetUser, targetPass);
  29.  
  30. function jetEngine() {
  31. request("http://api.steampowered.com/ISteamUser/ResolveVanityURL/v0001/?key=" + apiKey + "&vanityurl=" + targetID, function(error, response, body) {
  32. if(body.indexOf(targetString) > -1) {
  33. claim();
  34. }
  35. else {
  36. cnt++;
  37. if (debug > 0) {
  38. console.log(cnt);
  39. }
  40. }
  41. });
  42. }
  43.  
  44.  
  45.  
  46. function doLogin(accountName, password, authCode, twoFactorCode, captcha) {
  47. community.login({
  48. "accountName": accountName,
  49. "password": password,
  50. "authCode": authCode,
  51. "twoFactorCode": twoFactorCode,
  52. "captcha": captcha
  53. }, function(err, sessionID, cookies, steamguard) {
  54. if(err) {
  55. if(err.message == 'SteamGuard') {
  56. rl.question("Steam Guard (EMAIL): ", function(code) {
  57. doLogin(accountName, password, code);
  58. });
  59.  
  60. return;
  61. }
  62. if(err.message == 'SteamGuardMobile') {
  63.  
  64. rl.question("Steam Guard (MOBILE): ", function(code) {
  65. doLogin(accountName, password, null, code);
  66. });
  67.  
  68. return;
  69. }
  70. if(err.message == 'CAPTCHA') {
  71. console.log(err.captchaurl);
  72. rl.question("CAPTCHA: ", function(captchaInput) {
  73. doLogin(accountName, password, null, captchaInput);
  74. });
  75.  
  76. return;
  77. }
  78.  
  79. console.log(err);
  80. process.exit();
  81. return;
  82. }
  83.  
  84. console.log("Started turboing " + targetID + " to account " + accountName);
  85.  
  86.  
  87. setInterval(jetEngine, pDelay);
  88.  
  89. });
  90.  
  91. }
  92.  
  93. function setClaim() {
  94. community.editProfile({
  95. "customURL": targetID,
  96. }, function(err){
  97. if (err) {
  98.  
  99. }
  100. else {
  101.  
  102. }
  103. });
  104. }
  105. var claim = (function() {
  106. var executed = false;
  107. return function() {
  108. if (!executed) {
  109. executed = true;
  110. setClaim();
  111. }
  112. };
  113. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement