Jump to content
McKay Development

4049_1572836826

Member
  • Posts

    57
  • Joined

  • Last visited

Posts posted by 4049_1572836826

  1. Hi, how do I get information about a removed game ?

    via this link it gives me the status false https://store.steampowered.com/api/appdetails?appids=516700
    I can only get the badges https://steamcommunity.com/my/gamecards/516700
    https://cdn.cloudflare.steamstatic.com/steam/apps/516700/header.jpg

    But i need information about name, type, and 100% state of game like removed, active etc.

    How do i get this info, Thanks

  2. These aren't distinct domains; they're subdomains / wildcards of the main domain. If you set cookies for the main domain, all subdomains will be able to access those cookies.

    edit sorry I mean store.steamcommunity and steamcommunity and I forgot about steampowered :D

    check SSO https://stackoverflow.com/questions/43631581/how-to-do-single-sign-on-with-nodejs

    https://github.com/ankur-anand/simple-sso

  3. Hi, in the future I plan to have more bots in one script they will have functions that will get info from steam pages and I would like to avoid limits.

    I have made such a solution which works with request.. 
    And I would like to ask if there is another option ?
     

    proxy.bot = 'http://xx:xx@xxx:xxx'
    steamUser.bot = new SteamUser({ httpProxy: proxy.bot })
    request.bot = Request.defaults({ forever: true, proxy: proxy.bot })
    steamCommunity.bot = new Steamcommunity({ request: request.bot })
    
    steamUser.bot.logOn({
      refreshToken:
        'xxx'
    })
    
    steamUser.bot.on('loggedOn', () => {
      console.log('Logged on!')
      console.log(steamUser.bot.publicIP) // * to eq proxy IP
    })
    
    steamUser.bot.on('webSession', (sessionID, cookies) => {
      steamCommunity.bot.setCookies(cookies)
      steamCommunity.bot.loggedIn((err, loggedIn) => {
        if (err) console.log(err)
        if (loggedIn) console.log('Logged in!')
    
        const { request: SCrequest } = steamCommunity.bot
    
        SCrequest.get('https://api.ipify.org?format=json', (err, res, body) => {
          if (err) console.log(err)
          console.log(JSON.parse(body).ip) // * to eq proxy IP
        })
    
        SCrequest.get('https://steamcommunity.com/my/profile', (err, res) => {
          if (err) console.log(err)
          console.log(res.request.uri.href) // * return /profiles/steamID
        })
      })
    })

     

  4. steam-user : v. 4.27.1
    steamcommunity: v. 3.44.3

    Hi, I'm logging into the bot via steam-user and refresToken and after finding webSession, cookies are not valid / setCookies still return Not Logged In.
    SteamCommunity _checkHttpError return status code 302 redirection to /login
    Anyone have similar experiences ? 

    steamUser[item.id] = new SteamUser()
    steamCommunity[item.id] = new SteamCommunity()
    tradeOfferManager[item.id] = new TradeOfferManager({
      steam: steamUser[item.id],
      community: steamCommunity[item.id],
      domain: 'localhost',
      language: 'en'
    })
    
    steamUser[item.id].logOn({
      refreshToken: item.steam_session_token,
      logonID: 67
    })

     
    image.png.0a408df9e649e864d96098a00c131027.png

    image.png.77ebfcad3b61949f515f0eca9330dddd.png
     

  5. 1. https://steamcommunity.com/login/getrsakey/?username=
    2. encode pass to base64 rsa encrypt with mod and exp from getrsakey
    3. and use in body of POST https://steamcommunity.com/login/dologin/
    4. process dologin by response like success, requires_twofactor, emailauth_needed

    https://github.com/DoctorMcKay/node-steamcommunity/blob/3bcaf408506071e6672b3f9b15125bdc3c5a5ef4/index.js#L58

  6. client.sendToGC(appId, 4006, {}, Buffer.alloc(0)); // ClientHello
    
    client.on("receivedFromGC", (appId, msgType, payload) => {
    	if (msgType === 4004) {
        	// ClientWelcome
    		client.sendToGC(appId, 9109, {}, Buffer.alloc(0)); // MatchmakingClient2GCHello
    	else if (msgType === 9110) {
        	// MatchmakingGC2ClientHello
    		// protoDecode CMsgGCCStrike15_v2_MatchmakingGC2ClientHello
    		// This work correctly
     	}
    })

    Work for me. 

  7. Work for me :

    const SteamUser = require("steam-user");
    const GlovalOffensive = require("globaloffensive");
    
    const client = new SteamUser();
    const csgo = new GlovalOffensive(client);
    
    client.logOn({
      logonID: 12,
      refreshToken:
        "token",
    });
    
    client.on("loggedOn", () => {
      console.log("Logged into Steam");
    
      client.setPersona(SteamUser.EPersonaState.Online);
      client.gamesPlayed(730);
    });
    
    client.on("appLaunched", (appId) => {
      console.log("App launched: " + appId);
    });
    
    csgo.on("connectedToGC", () => {
      console.log("Connected to GC");
      console.log("haveGCSession:", csgo.haveGCSession);
    });
    
    csgo.on("disconnectedFromGC", (err) => {
      console.log("Disconnected from GC", err);
    });
    
    csgo.on("accountData", (data) => {
      console.log("accountData", data);
    });
    
    csgo.on("debug", console.log);

     

  8. sorry, my bad, 

    Quote

    A big object containing account data and some statistics including players in-game. Undefined until accountData is emitted.

    csgo.on("accountData", (data) => {
    console.log(data);
    console.log("Data", csgo.accountData);
    });

    try: 

    csgo.on("connectedToGC", () => {
    console.log("Connected to GC");
    csgo.requestPlayersProfile(client.steamID);
    });
     
    csgo.on("playersProfile", (data) => {
    console.log(data);
    });

    I got on first logon from

    csgo.on("accountData", data => 

     image.png.f00dfee806b57bd1089dcd6fff92e5e4.png

    And second run nothing

    image.png.5b463b7f0f713935dd5cb0b472111a5e.png

  9. Hi, what is the best method for relogin to bot if e.g. on NoConnection disconnect.

    e.g.
    1st step login with steam-sessions and save refreshToken
    2nd step login to steam-client with refreshToken and save loginKey
    3rd step if NoConnection disconnect use login key or refreshToken

    and how long alive refreshToken and how to regenerate ? only relogin w/ steam-session, if steam-client throw InvalidPassword

×
×
  • Create New...