flipper-zero_authenticator-companion icon indicating copy to clipboard operation
flipper-zero_authenticator-companion copied to clipboard

[BUG] - Unable to run totp cli

Open uhlhosting opened this issue 9 months ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

Unable to run totp on macos Sonoma.

To Reproduce Steps to reproduce the behavior:

  1. Go to '..Terminal'
  2. Execute '...totp'
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

I would see more fit to release a binary to work as an independent cli.

Screenshots If applicable, add screenshots to help explain your problem.

Device information (please complete the following information):

  • Firmware: Latest RogueMasters
  • Firmware version 0.102

Additional context Add any other context about the problem here.

Last login: Mon May 13 02:59:23 on ttys021
> totp
zsh: command not found: totp
> whereis totp
totp:
> locate totp
/Applications/YubiKey Manager.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/cryptography/hazmat/primitives/twofactor/totp.py
/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/cryptography/hazmat/primitives/twofactor/__pycache__/totp.cpython-312.pyc
/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/cryptography/hazmat/primitives/twofactor/totp.py
/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/twofactor/totp.pyi
/Users/cosmic/.ufbt/toolchain/x86_64-darwin/python/lib/python3.11/site-packages/cryptography/hazmat/primitives/twofactor/__pycache__/totp.cpython-311.pyc
/Users/cosmic/.ufbt/toolchain/x86_64-darwin/python/lib/python3.11/site-packages/cryptography/hazmat/primitives/twofactor/totp.py
/Users/cosmic/.vscode/extensions/extensions/ms-python.python-2023.9.11371007/pythonFiles/lib/jedilsp/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/twofactor/totp.pyi
/Users/cosmic/.vscode/extensions/ms-python.python-2024.4.1/python_files/lib/jedilsp/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/twofactor/totp.pyi
/Users/cosmic/.vscode/extensions/ms-python.python-2024.6.0/python_files/lib/jedilsp/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/twofactor/totp.pyi
/Users/cosmic/.vscode/extensions/ms-python.vscode-pylance-2024.5.1/dist/typeshed-fallback/stubs/passlib/passlib/totp.pyi
/Users/cosmic/.vscode-oss/extensions/ms-python.python-2023.9.11371007/pythonFiles/lib/jedilsp/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/twofactor/totp.pyi
/Users/cosmic/Developer/AI/devika/.venv/lib/python3.12/site-packages/cryptography/hazmat/primitives/twofactor/totp.py
/Users/cosmic/Developer/Devstack/Cloud/cloud/lib/python3.7/site-packages/cryptography/hazmat/primitives/twofactor/__pycache__/totp.cpython-37.pyc
/Users/cosmic/Developer/Devstack/Cloud/cloud/lib/python3.7/site-packages/cryptography/hazmat/primitives/twofactor/totp.py
/Users/cosmic/Developer/Devstack/Cloud/cloud/lib/python3.7/site-packages/keystoneauth1/identity/v3/__pycache__/totp.cpython-37.pyc
/Users/cosmic/Developer/Devstack/Cloud/cloud/lib/python3.7/site-packages/keystoneauth1/identity/v3/totp.py
/Users/cosmic/venv/lib/python3.12/site-packages/cryptography/hazmat/primitives/twofactor/__pycache__/totp.cpython-312.pyc
/Users/cosmic/venv/lib/python3.12/site-packages/cryptography/hazmat/primitives/twofactor/totp.py
/Users/cosmic/venv/lib/python3.12/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/twofactor/totp.pyi
/usr/local/Cellar/ansible/9.5.1/libexec/lib/python3.12/site-packages/keystoneauth1/identity/v3/totp.py
/usr/local/Cellar/ansible/9.5.1/libexec/lib/python3.12/site-packages/passlib/tests/test_totp.py
/usr/local/Cellar/ansible/9.5.1/libexec/lib/python3.12/site-packages/passlib/totp.py
/usr/local/Cellar/cryptography/42.0.5/lib/python3.11/site-packages/cryptography/hazmat/primitives/twofactor/totp.py
/usr/local/Cellar/cryptography/42.0.5/lib/python3.12/site-packages/cryptography/hazmat/primitives/twofactor/totp.py
/usr/local/Cellar/mitmproxy/9.0.1/libexec/lib/python3.11/site-packages/cryptography/hazmat/primitives/twofactor/totp.py
/usr/local/Cellar/mitmproxy/9.0.1/libexec/lib/python3.11/site-packages/passlib/tests/test_totp.py
/usr/local/Cellar/mitmproxy/9.0.1/libexec/lib/python3.11/site-packages/passlib/totp.py
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/t/totp-cli.rb
/usr/local/lib/python3.12/site-packages/cryptography/hazmat/primitives/twofactor/totp.py
/usr/local/lib/python3.12/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/twofactor/totp.pyi
~ .......................................................................................................................................................................... at 03:12:31
> 

uhlhosting avatar May 13 '24 01:05 uhlhosting

Looks like you were trying to execute totp command right on your host machine. That's expected behavior because Authenticator CLI is running on Flipper device and is available there. And they way to access it from your host machine is by using some telnet client to connect to your Flipper device first, and then run totp CLI command there. You may also use https://lab.flipper.net/cli to do this.

akopachov avatar May 13 '24 06:05 akopachov