Jump to content
McKay Development

Steam login/dologin "steamLoginSecure" a way to get it?


Alin Tabuci

Recommended Posts

Hi! Recently i started working on a process that would change multiple accounts store country, or other settings (if it's even possible), using:

POST /account/setcountry


So i checked the requests (in the devtool) that steam does in the background, and found out that with each request they send session id and in the cookies they send a field called "steamLoginSecure", i took that request and started removing fields one by one to see what fiield are required and eventually figured out that sessionid field is required but for some reason it's value is not important (maybe i didn't understand it right), but "steamLoginSecure" is required and it's value must be correct so i started reading on the internet about this field, and got to the point where everyone says that it's very important, it's used for generating .maFile and it's more important than the password of an account. 

Well in order to make those requests work automatically i need to get "steamLoginSecure " somehow.

I'm doing my authentication through 

https://steamcommunity.com/login/getrsakey/

then

https://steamcommunity.com/login/dologin/


So the question how do i get it? Is it even possible?

I hope i explained everything correctly, it's my first time asking a question on the internet! Thank you!

 

 

P.S: I'm doing it in php, and i do have the maFile of those accounts.

Edited by Alin Tabuci
Link to comment
Share on other sites

5 hours ago, 4049_1572836826 said:

You can update your Steam country setting when you complete your first purchase using a payment method from that country.
&
Automating the steam store is against Steams terms of service

Okay but what about "steamLoginSecure", is there a way of fetching it? I mean there are other endpints that i'd like to use that are not connected to the store anyhow.

Link to comment
Share on other sites

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

Edited by 4049_1572836826
Link to comment
Share on other sites

8 hours ago, 4049_1572836826 said:

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

Thank you for the response!

 

I did already authenticate, i just cannot really understand where do i get the value of the field on the screenshot, because steam does check for its value in otherwise the response is "null"

 

In authentication response there's no such field, or maybe there is but i have to encrypt it or something.. 

Screenshot 2023-03-03 092141.png

Link to comment
Share on other sites

I Totally get cookie when i use credentials using oauth authentication.

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

After dologin response was cookies then it tokens occur there.

login response ->  <Response [200]>
login response json ->  {'success': True, 'requires_twofactor': False, 'login_complete': True, 'transfer_urls': ['https://store.steampowered.com/login/transfer', 'https://help.steampowered.com/login/transfer'], 'transfer_parameters': {'steamid': 'XXXXXXXXXXXXXXX', 'token_secure': 'XXXXXXXXXXXXXXXAAD2EEF9ABFACXXXXXXXXXXXXXXX', 'auth': 'XXXXXXXXXXXXXXX4d4dc71ff713ed71XXXXXXXXXXXXXXX', 'remember_login': True, 'webcookie': 'XXXXXXXXXXXXXXX417DBA7D4A9274XXXXXXXXXXXXXXX'}}
self._check_for_captcha
self._assert_valid_credentials
self._perform_redirects
self.set_sessionid_cookies
{'sessionid': 'd565899090d3cd4a5XXXXXXXX', 'steamLoginSecure': 'XXXXXXXXXXXXXXX%7C%7C8FA4BAXXXXXXXXXXXXXXXBFACD11A5E6D00', 'steamMachineAuthXXXXXXXXXXXXXXX': 'XXXXXXXXXXXXXXX417DBA7D4A927XXXXXXXXXXXXXXX', 'steamCountry': 'XX%7C9fa88826f83c4ad51e2191aef916d636', 'steamRememberLogin': 'XXXXXXXXXXXXXXX%7C%XXXXXXXXXXXXXXX416961e7fcdc7XXXXXXXXXXXXXXX', 'browserid': 'XXXXXXX29345752'}

This is my topic can you reply it when you know about this thank u.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...