SteamRE / DepotDownloader

Steam depot downloader utilizing the SteamKit2 library.
GNU General Public License v2.0
1.98k stars 268 forks source link

"Use the Steam Mobile App to confirm your sign in" is not being accepted #516

Open coffandro opened 4 months ago

coffandro commented 4 months ago

What did you expect to happen?

Hallo, I'm the developer behind the Fallout: London Downgrader and in there we run DepotDownloader(.exe depending on OS) -username "USERNAME" " -password "PASSWORD" -remember-password -app 377160 -depot 377162 -dir FOLON-Downgrader-Files/SteamFiles to login to steam and check if the user own's Fallout 4, If steam guard is needed on the mobile app we rerun this after the users confirmed, on email we simply send that to the cmd running the exe. we then go through two lists containing like just below

Depot, Manifest 377161, 7497069378349273908 377162, 5847529232406005096 377163, 5819088023757897745 377164, 2178106366609958945 435880, 1255562923187931216 435870, 1691678129192680960 435871, 5106118861901111234

and run this DepotDownloader(.exe depending on OS) -username "USERNAME" -remember-password -app 377160 -depot DEPOT -manifest MANIFEST -dir "" -validate

Now what should happen is the downgrader runs everything and downloads the depots to the location

Instead of that, what actually happened?

What actually happens is that in rare cases it gives the following output instead of just downloading the depots

Which operating system are you running on?

Other

Version

2.6.0

Relevant log output

Logging 'USERNAME' into Steam3...
STEAM GUARD! Use the Steam Mobile App to confirm your sign in...
Logging 'USERNAME' into Steam3...
STEAM GUARD! Use the Steam Mobile App to confirm your sign in...
Logging 'USERNAME' into Steam3...
STEAM GUARD! Use the Steam Mobile App to confirm your sign in...

Additional Information

I personally think this is either a failure on how we run this or somewhere else in the stack where steam guard sessions don't get saved. here's the code if you'd like to take a look Login https://github.com/Fallout-London/FOLON-FO4Downgrader/blob/main/FOLON-Downgrader.py#L427 Download list https://github.com/Fallout-London/FOLON-FO4Downgrader/blob/main/FOLON-Downgrader.py#L722 Download command https://github.com/Fallout-London/FOLON-FO4Downgrader/blob/main/FOLON-Downgrader.py#L777

xPaw commented 4 months ago

I suspect the prompt is being denied, or the response is taking too long so it reconnects. Do you have a proper repro for this with timing?

And does the login never succeed even if you accept the prompt with these logs?

coffandro commented 4 months ago

The repo i have attached in the message with like numbers and everything. the prompt succeeds most of the time which is why its odd, It seems almost random

xPaw commented 4 months ago

I am specifically asking if the prompt is accepted and the login eventually succeeds when you get the repeated messages. The log you are providing is not an indication of a problem by itself.

Since the code you link has a timeout of 120 seconds, I am thinking the login is just not accepted, and DD is reconnecting to Steam (the connection is kicked off after like 60 seconds), causing the repeated log message.

Fantasillion commented 3 months ago

I can reproduce it with FOLON-FO4Downgrader. When I get to the step where I am asked to confirm sign in, in the Steam Android app, I confirm within 5 seconds. It is therefore unlikely to be a timeout since we're nowhere near 60 seconds. Trying to confirm repeatedly only results in being throttled and not being able to login using the DepotDownloader for the next 1-2 hours.

xPaw commented 3 months ago

Can you repro when using DD directly?

xPaw commented 3 months ago

Also how consistently does this problem happen, is it everytime and you can't login at all?

Can you try reproducing this on https://steamdb.info/tokendumper/ (it uses the same SteamKit authentication code)

coffandro commented 3 months ago

That's the worse part, I haven't been able to reproduce it at all but it happens semi constantly for the users of my downgrader