Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    8otto's Avatar
    Join Date
    Jun 2021
    Gender
    male
    Posts
    982
    Reputation
    106
    Thanks
    2,516
    My Mood
    Inspired
    Quote Originally Posted by tencid View Post
    1st post as in whichone?
    https://www.mpgh.net/forum/showthrea...4#post15420594

  2. #17
    zag22's Avatar
    Join Date
    Jul 2020
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0

    PLS HELP

    Quote Originally Posted by nice1233 View Post
    Code:
    const SteamUser = require('steam-user');
    const fetch = require('node-fetch');
    const cookie = require('cookie');
    
    var ticketID = ""
    
    const steamUser = new SteamUser();
    steamUser.logOn({ accountName: 'your username', password: 'your password' });
    steamUser.on('loggedOn', function() {
        steamUser.setPersona(SteamUser.EPersonaState.Online);
        steamUser.createAuthSessionTicket(381210, (err, ticket) => {
            if (err) {
                console.error('Error creating auth session ticket:', err);
                return;
            }
    
            const hexTicket = ticket.toString('hex');
    
            ticketID = hexTicket;
    
            steamUser.logOff()
        });
    });
    
    steamUser.on('disconnected', function() {
        const url = 'https://steam.live.bhvrdbd.com/api/v1/auth/provider/steam/loginWithTokenBody';
    
        const headers = {
          'Accept': '*/*',
          'Accept-Encoding': 'deflate, gzip',
          'Content-Type': 'application/json',
        };
        
        const data = {
          abortIfAlreadyLoggedInUnifiedAccount: false,
          clientData: {},
          token: ticketID.toString()
        };
    
        fetch(url, {
            method: 'POST',
            headers: headers,
            body: JSON.stringify(data)
          })
            .then(response => {
              const setCookieHeader = response.headers.raw()['set-cookie'];
              if (setCookieHeader) {
                const bhvrSessionCookie = setCookieHeader.find(cookieString => {
                  const parsedCookie = cookie.parse(cookieString);
                  return parsedCookie.bhvrSession;
                });
          
                if (bhvrSessionCookie) {
                  const parsedCookie = cookie.parse(bhvrSessionCookie);
                  console.log('bhvrSession:', parsedCookie.bhvrSession);
                } else {
                  console.log('bhvrSession not found');
                }
              } else {
                console.log('error');
              }
            })
            .catch(error => {
            console.error('error:', error);
        });
    });
    you can also use this node script then you dont need a ssl bypass
    node.js can you explain pls how can we do this

Page 2 of 2 FirstFirst 12

Tags for this Thread