Advertisement
Guest User

Untitled

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