Jump to content
McKay Development

Rellfy

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Rellfy

  1. Hello!

    I'm getting the Sentry file from the 'steam' module. When I try to logon using this module, I set the sentry file and it still requests me to input the Steam Guard code. Here's how I'm getting the sentry from Steam.SteamUser:

    function MakeSha(bytes) {
    var hash = crypto.createHash('sha1');
    hash.update(bytes);
    return hash.digest();
    }

    this.steamClientUser.on('updateMachineAuth', (sentry, cb) => {
        fs.writeFileSync(/* path */, sentry.bytes);

    // Method which uses steam-user module
        this.loginWithSentry();

        cb({
            sha_file: MakeSha(sentry.bytes)
        });

    this.steamClient.disconnect();
    });

    And here, how I set the sentry, reading from the file that was written in the above code.

    let sentryFile = fs.readFileSync((/* path */));

    this.steamUser.setSentry(sentryFile);

    this.steamUser.logOn({
    accountName: this.username,
    password: this.password
    });
    After this, the console asks for the steam guard code, apparently ignoring the sentry.
    PS: The sentry file is actually 2KB.
×
×
  • Create New...