· 6 years ago · Feb 20, 2020, 06:14 PM
1Skip to content
2Why GitHub?
3Enterprise
4Explore
5Marketplace
6Pricing
7turbo steam
8
9Sign in
10Sign up
11suiciding
12/
13steam-turbo
14000
15 Code Issues 0 Pull requests 0 Actions Projects 0 Security Insights
16Create steam turbo.js
17
18 master
19@suiciding
20suiciding committed on 10 Nov 2018
210 parents commit 32d4f66954903cc8431906a4388d2f5dc63b6df5
22Showing with 114 additions and 0 deletions.
23 114 steam turbo.js
24@@ -0,0 +1,114 @@
25var SteamCommunity = require('steamcommunity');
26var ReadLine = require('readline');
27var fs = require('fs');
28
29var request = require("request");
30
31
32var community = new SteamCommunity();
33
34var cnt = 0;
35
36var targetUser = ""; // your username
37var targetPass = ""; // your password
38var apiKey = ""; // Steam dev api ke. Google steam api key
39var pDelay = 100; // delay is in ms
40var debug = 1; // displays the count. 0 to turn off
41
42
43var targetID = ""; // steam id you're trying to get
44
45var targetString = "No match";
46
47var rl = ReadLine.createInterface({
48"input": process.stdin,
49"output": process.stdout
50});
51
52doLogin(targetUser, targetPass);
53
54function jetEngine() {
55request("http://api.steampowered.com/ISteamUser/ResolveVanityURL/v0001/?key=" + apiKey + "&vanityurl=" + targetID, function(error, response, body) {
56 if(body.indexOf(targetString) > -1) {
57claim();
58}
59else {
60cnt++;
61if (debug > 0) {
62console.log(cnt);
63}
64}
65});
66}
67
68
69
70function doLogin(accountName, password, authCode, twoFactorCode, captcha) {
71community.login({
72"accountName": accountName,
73"password": password,
74"authCode": authCode,
75"twoFactorCode": twoFactorCode,
76"captcha": captcha
77}, function(err, sessionID, cookies, steamguard) {
78if(err) {
79if(err.message == 'SteamGuard') {
80rl.question("Steam Guard (EMAIL): ", function(code) {
81doLogin(accountName, password, code);
82});
83
84return;
85}
86if(err.message == 'SteamGuardMobile') {
87
88rl.question("Steam Guard (MOBILE): ", function(code) {
89doLogin(accountName, password, null, code);
90});
91
92return;
93}
94if(err.message == 'CAPTCHA') {
95console.log(err.captchaurl);
96rl.question("CAPTCHA: ", function(captchaInput) {
97doLogin(accountName, password, null, captchaInput);
98});
99
100return;
101}
102
103console.log(err);
104process.exit();
105return;
106}
107
108console.log("Started turboing " + targetID + " to account " + accountName);
109
110
111setInterval(jetEngine, pDelay);
112
113});
114
115}
116
117function setClaim() {
118community.editProfile({
119 "customURL": targetID,
120 }, function(err){
121 if (err) {
122
123}
124 else {
125 console.log("Turboed!");
126 sys.exit(0);
127 }
128});
129}
130var claim = (function() {
131 var executed = false;
132 return function() {
133 if (!executed) {
134 executed = true;
135 setClaim();
136}
137 };
138})();
1390 comments on commit 32d4f66
140Please sign in to comment.
141© 2020 GitHub, Inc.
142Terms
143Privacy
144Security
145Status
146Help
147Contact GitHub
148Pricing
149API
150Training
151Blog
152About