-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2939d21
commit e807997
Showing
13 changed files
with
191 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,32 @@ | ||
import fs from 'fs'; | ||
import Steam from 'steam'; | ||
import async from 'async'; | ||
const accountData = fs.readFileSync('./STEAM_ACCOUNT_DATA_BAD.txt', 'utf8'); | ||
const accountArray = accountData.split(require('os').EOL); | ||
|
||
let index = Number(process.argv[2]) || -1; | ||
async.whilst( | ||
() => true, | ||
(cb) => { | ||
index += 1; | ||
const random = index; | ||
// const random = Math.floor(Math.random() * accountArray.length); | ||
const user = accountArray[random].split('\t')[0]; | ||
const pass = accountArray[random].split('\t')[1]; | ||
const logOnDetails = { | ||
account_name: user, | ||
password: pass, | ||
}; | ||
const client = new Steam.SteamClient(); | ||
client.steamUser = new Steam.SteamUser(client); | ||
client.connect(); | ||
client.on('connected', () => { | ||
client.steamUser.logOn(logOnDetails); | ||
}); | ||
client.on('logOnResponse', (logOnResp) => { | ||
if (logOnResp.eresult === Steam.EResult.AccountDisabled) { | ||
console.error(index, user, 'failed', logOnResp.eresult); | ||
} else if (logOnResp.eresult === Steam.EResult.InvalidPassword) { | ||
console.error(index, user, 'failed', logOnResp.eresult); | ||
} else { | ||
console.error(index, user, 'passed', logOnResp.eresult); | ||
} | ||
client.disconnect(); | ||
setTimeout(cb, 500); | ||
}); | ||
}, | ||
() => {} | ||
); | ||
index += 1; | ||
const random = index; | ||
// const random = Math.floor(Math.random() * accountArray.length); | ||
const user = accountArray[random].split('\t')[0]; | ||
const pass = accountArray[random].split('\t')[1]; | ||
const logOnDetails = { | ||
account_name: user, | ||
password: pass, | ||
}; | ||
const client = new Steam.SteamClient(); | ||
client.steamUser = new Steam.SteamUser(client); | ||
client.connect(); | ||
client.on('connected', () => { | ||
client.steamUser.logOn(logOnDetails); | ||
}); | ||
client.on('logOnResponse', (logOnResp) => { | ||
if (logOnResp.eresult === Steam.EResult.AccountDisabled) { | ||
console.error(index, user, 'failed', logOnResp.eresult); | ||
} else if (logOnResp.eresult === Steam.EResult.InvalidPassword) { | ||
console.error(index, user, 'failed', logOnResp.eresult); | ||
} else { | ||
console.error(index, user, 'passed', logOnResp.eresult); | ||
} | ||
client.disconnect(); | ||
setTimeout(cb, 500); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,21 @@ | ||
import Steam from 'steam'; | ||
import SteamUser from 'steam-user'; | ||
import async from 'async'; | ||
|
||
const steam = new SteamUser(); | ||
const time = Math.floor(new Date() / 1000); | ||
async.eachSeries( | ||
Array.from(new Array(1000), (v, i) => i), | ||
(i, cb) => { | ||
steam.logOn(() => {}); | ||
steam.once('loggedOn', () => { | ||
const name = `${time}_${i}`; | ||
const password = (Math.random() + 1).toString(36).substring(7); | ||
const email = `${name}@email.com`; | ||
steam.createAccount(name, password, email, (result, steamid) => { | ||
console.error(name, password, result, steamid); | ||
if (result === Steam.EResult.OK) { | ||
console.log('%s\t%s', name, password); | ||
} | ||
steam.logOff(() => {}); | ||
setTimeout(cb, 61000); | ||
}); | ||
Array.from(new Array(1000), (v, i) => i).forEach((i) => { | ||
steam.logOn(() => {}); | ||
steam.once('loggedOn', () => { | ||
const name = `${time}_${i}`; | ||
const password = (Math.random() + 1).toString(36).substring(7); | ||
const email = `${name}@email.com`; | ||
steam.createAccount(name, password, email, (result, steamid) => { | ||
console.error(name, password, result, steamid); | ||
if (result === Steam.EResult.OK) { | ||
console.log('%s\t%s', name, password); | ||
} | ||
steam.logOff(() => {}); | ||
setTimeout(cb, 61000); | ||
}); | ||
}, | ||
(err) => { | ||
console.error(err); | ||
process.exit(Number(err)); | ||
} | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,19 @@ | ||
import request from 'request'; | ||
import async from 'async'; | ||
import axios from 'axios'; | ||
import config from '../config.js'; | ||
|
||
const output = []; | ||
|
||
async.eachSeries( | ||
config.STEAM_API_KEY.split(','), | ||
(key, cb) => { | ||
setTimeout(() => { | ||
request( | ||
`http://api.steampowered.com/IDOTA2Match_570/GetMatchHistory/V001/?key=${key}`, | ||
(err, resp, body) => { | ||
console.log(key, resp.statusCode); | ||
if (resp.statusCode !== 200) { | ||
console.log(body); | ||
} else { | ||
output.push(key); | ||
} | ||
cb(); | ||
} | ||
); | ||
}, 1000); | ||
}, | ||
() => { | ||
console.log(output.join(',')); | ||
const arr = config.STEAM_API_KEY.split(','); | ||
for (let i = 0; i < arr; i++) { | ||
const key = arr[i]; | ||
const resp = await axios.get( | ||
`http://api.steampowered.com/IDOTA2Match_570/GetMatchHistory/V001/?key=${key}` | ||
); | ||
console.log(key, resp.statusCode); | ||
if (resp.statusCode !== 200) { | ||
console.log(body); | ||
} else { | ||
output.push(key); | ||
} | ||
); | ||
} | ||
console.log(output.join(',')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.