Does this still work as of Nov/2024
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.
{"error":"invalid_token","error_description":"Invalid SSO token."}
@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
@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.