arcanericky / ga-cmd Goto Github PK
View Code? Open in Web Editor NEWCommand line access to Google Authenticator and other TOTP verification codes
License: MIT License
Command line access to Google Authenticator and other TOTP verification codes
License: MIT License
Line 2 in 295af8d
Failed to execute process '/usr/local/bin/ga-cmd'. Reason: exec: Exec format error The file '/usr/local/bin/ga-cmd' is marked as an executable but could not be run by the operating system.
I did every step mentioned in the Quick start guide but it couldn't go beyond that error.
I was using MacOs
I am not sure what the issue is, it took the same key as my android app, but it seem to generate different tokens each time.
Is there anything I can debug to help identify the issue better?
Do you know how I should use secrets that are longer than 16 characters?
In my Google Authenticate sqlite3 database, I see some 16 characters secrets (Facebook, GitHub, Heroku), but other secrets are longer, namely Dropbox (26 characters), Google (32 characters) and Amazon AWS (64 characters).
How can I compile a ga-cmd that would use those secrets?
Thanks.
I'm trying to build on Cygwin and there is some problem.
$ ./build.sh ZAYNP7CBZB2FQNFF
git pull
gcc -c -std=gnu99 google-authenticator/libpam/hmac.c
makefile:13: recipe for target 'hmac.o' failed
make: *** [hmac.o] Error 1
I receive this error message when I go to build:
git pull
gcc -c -std=gnu99 -DTESTING google-authenticator/libpam/pam_google_authenticator.c
google-authenticator/libpam/pam_google_authenticator.c:50:31: fatal error: security/pam_appl.h: No such file or directory
compilation terminated.
make: *** [pam_google_authenticator.o] Error 1
HI, thanks for the project, it is really awesome!
It seems like this project is not available on AUR (Arch User Repository), at least I did not find it searching with yay or pacman. It would be good to publish it, isn't?
$ git submodule update --init --recursive && cd src && ./build.sh
Building without internal key
rm -rf bin
rm -f *.o config.h *.gcno *.gcda *.gcov coverage*.html
(cd google-authenticator-libpam && make clean)
make[1]: Entering directory '/home/chaz/git/github.com_arcanericky_ga-cmd/src/google-authenticator-libpam'
make[1]: *** No rule to make target 'clean'. Stop.
make[1]: Leaving directory '/home/chaz/git/github.com_arcanericky_ga-cmd/src/google-authenticator-libpam'
make: *** [makefile:56: clean] Error 2
$ ls google-authenticator-libpam/
bootstrap.sh build configure.ac contrib CONTRIBUTING.md examples FILEFORMAT LICENSE Makefile.am man README.md src tests totp.html utc-time
Line 9 in 295af8d
Hello,
This is a very cool tool.
I tried using it with multiple accounts by creating different folders
~/ga-cmd-acc1/src/bin/ga-cmd
~/ga-cmd-acc2/src/bin/ga-cmd
~/ga-cmd-acc3/src/bin/ga-cmd
I followed your how-to on each. Unfortunately only the 1st one was giving me a correct 6 digit code. Is this possible?
Thanks
Dave
Hi, thanks for making this! Really useful.
Would you mind adding a license? If not then that's fine, entirely up to you, but it leads to some problems...
Here's a nice website for choosing a license https://choosealicense.com/
is there a mechanism to import existing codes from the Google Authenticator android app? It can export them but I don't see how to import them into this.
Thanks!
The README has an example configuration file with example keys. These keys contain illegal characters (0 and 1). It would be nice if the examples contain random, yet valid keys.
Valid characters are A-Z and 2-7 and will successfully decode using the base32_decode()
function in the Google Authenticator PAM Module.
from wikipedia
When your seed has 'U', like '....UABC', the hide_key is '...\0...\0'.So the result is wrong.
The binary of 'U'(0b01010101 ) can't be used to hide string, '0b00000110' recommended.
Hey,
Can you please compile this for M1/M2?
I tried building from source and got an error
src ./build.sh
Building without internal key
rm -rf bin
rm -f *.o config.h *.gcno *.gcda *.gcov coverage*.html
(cd google-authenticator-libpam && make clean)
make[1]: *** No rule to make target `clean'. Stop.
make: *** [clean] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.