jleclanche / python-bna

Python implementation of the mobile Blizzard Authenticator (TOTP)
https://eu.battle.net/support/en/article/24520
MIT License
250 stars 38 forks source link

Error: No such serial found #15

Closed DoNotSpamPls closed 6 years ago

DoNotSpamPls commented 6 years ago

Hi there, I'm trying to generate an OTP URL to replace the Blizzard Authenticator, but whenever I try the commands recommended in the README, I get this error

root@ubuntu:~/python-bna# bna --otpauth-url otpauth://totp/Battle.net:EU111111111111:?secret=ASFAS75ASDF75889G9AD7S69AS7697AS&issuer=Battle.net&digits=8
[1] 40979
[2] 40980
root@ubuntu:~/python-bna# Error: No such serial: 'OTPAUTH://TOTP/BATTLE.NET:EU111111111111:?SECRET=ASFAS75ASDF75889G9AD7S69AS7697AS'

[1]-  Exit 1                  bna --otpauth-url otpauth://totp/Battle.net:EU111111111111:?secret=ASFAS75ASDF75889G9AD7S69AS7697AS
[2]+  Done                    issuer=Battle.net

(I'm writing my correct serial, í've just edited it for here)

I tried it both on the Windows Subsystem for Linux and a real Ubuntu machine, but with no success. Am I doing something wrong? I already did the restore command, and that passed successfully.

jleclanche commented 6 years ago

I think you're not quoting the otp url correctly so your shell is parsing it weirdly.

jleclanche commented 6 years ago

But also I'm not sure I even understand what you're trying to do. bna --otpauth-url is a read command, it prints the otpauth url.

DoNotSpamPls commented 6 years ago

🤦‍♂️

I didn't realise it was a read-only command, thought you had to type it yourself or something. Okay, thanks 😛