python-bna icon indicating copy to clipboard operation
python-bna copied to clipboard

Does this still work as of Nov/2024

Open dgnuff opened this issue 1 year ago • 3 comments

With a little effort I was able to get python-bna installed and "running" to the point that bna --help produces meaningful output.

However, any attempt to do anything, either bna new or bna restore ... results in a socket.gaierror: [Errno 11001] getaddrinfo failed exception being thrown, and as far as I can tell this is because it's trying to connect to mobile-service.blizzard.com as defined in ENROLL_HOSTS found in constants.py.

Unfortunately, a quick test with ping returns an error indicating that said host no longer exists.

Has this all changed with the new mobile app authentication? I'd like to extract the OTP secret, so I can use a single 2FA app on my phone for multiple accounts, but it seems like I can't do that right now.

dgnuff avatar Nov 23 '24 11:11 dgnuff

{"error":"invalid_token","error_description":"Invalid SSO token."}

ssincxv avatar Dec 19 '24 03:12 ssincxv

@dgnuff Sorry for the late reply, but try using my tool instead. You should be able to extract your secret with it. Ideally, you may be better off detaching your current 2FA and using the tool to reattach a new one so you get the entire JSON file with your private data.

https://github.com/Nighthawk42/bnet_auth_tool

Nighthawk42 avatar Jan 22 '25 03:01 Nighthawk42

@dgnuff Sorry for the late reply, but try using my tool instead. You should be able to extract your secret with it. Ideally, you may be better off detaching your current 2FA and using the tool to reattach a new one so you get the entire JSON file with your private data.

https://github.com/Nighthawk42/bnet_auth_tool

Thanks @Nighthawk42 found this thanks to this comment/reply. Worked perfectly.

venomin30 avatar Aug 11 '25 03:08 venomin30