Jump to content
McKay Development

ElonMusk

Member
  • Posts

    10
  • Joined

  • Last visited

Posts posted by ElonMusk

  1. i have some code that logs into steam so one of my bots can accept a trade, first it gets the rsa key using a bots username then it encrypts a password and sends a request to dologin. i get the cookies back in the response however it is only steamauth, loginsecure, and steam country i get a 403 on trying to do pretty much anything because i have no session id how can i get one? i currently am using this:

    let sessionid = require('crypto').randomBytes(12).toString('hex');

    and then pushing it to the array of cookies however i still get 403 is there a different way i should be doing it?

     
  2. axios.post("https://steamcommunity.com/tradeoffer/5188600819/accept",{
        headers:{
            "Referer":"https://steamcommunity.com/tradeoffer/5188600819/",
            "cookies":{"steamLoginSecure":"-----","steamMachineAuth-----":"------","steamLogin":"-----","sessionid":"-----",}
        },
        form:{
            "tradeofferid":5188600819,
            "partner"://partner id ,
            "serverid":1,
            "captcha": "",
        }

    })
    .then((res)=>{
        console.log(res)
    })
     //so i can see the request data after before it ends
    setTimeout(()=>{console.log("test")},100000);

    i come up with this and still get a 403 this is correct right? the cookies are in the cookie header

  3. On 4/28/2022 at 9:37 PM, Dr. McKay said:

    That sounds like your cookies are invalid or expired.

    can you confirm im doing everything correct? i still get null the cookies go like this : steamlogin,steamloginsecure and session id are all from a instance where i sign in with steam user and console log the cookies i then pasted them into the postman request, the only extra header is the referrer . partner id is a 32 steam id of my trade partner, captcha remains empty and serverid is set to 1. is there something im doing wrong? the params page on post man adds stuff to the top of the link ex: steamcommunity.com/accept?param. sorry if im bothering you i just cant find alot about steam http request on the internet.

     

    3.thumb.png.fc7ba94cbe73515b5e48600df8b162b8.png2.thumb.jpg.e80a2b9db9ede0f2d807be6a0260d6ca.jpg1.thumb.jpg.95e0523b9d8ff1fb316c6c6aebd74478.jpg

×
×
  • Create New...