stoken is an open source tokencode generator compatible with RSA SecurID 128-bit (AES) tokens. It is a hobbyist project, not affiliated with or endorsed by RSA Security.
This SailfishOS stoken version only offers the following interfaces:
First, import a token from a raw string or an "sdtid" XML file:
$ stoken import --token http://127.0.0.1/securid/ctf?ctfData=2000123456... $ stoken import --token com.rsa.securid.iphone://ctf?ctfData=2000123456... $ stoken import --file mytoken.sdtid
This will prompt for an optional password, so that your seed is encrypted on disk.
Next, use the CLI to show the current tokencode:
$ stoken tokencode
If your token requires a PIN, stoken will prompt for it. You can use "stoken setpin" to cache your PIN in ~/.stokenrc. This is much less secure, but may be useful for automation.
Modern versions of OpenConnect link against libstoken and can send an autogenerated tokencode as the password. Import your token using the above instructions, then:
$ openconnect -u USERNAME --token-mode=rsa HOSTNAME
https://sourceforge.net/projects/stoken/
https://github.com/cernekee/stoken
$ cd /home/nemo (default path) $ stoken import --token http://127.0.0.1/securid/ctf?ctfData=2000... $ mv .stokenrc .token1 $ stoken import --token com.rsa.securid.iphone://ctf?ctfData=2000... $ mv .stokenrc .token2 $ stoken tokencode --rcfile=.token1 $ stoken tokencode --rcfile=.token2
I've established above dependencies to ensure proper stoken functionality but it will probably work with older versions, you can find both libraries already compiled for armv7hl in my repository, if you install this rpm via warehouse app, it will automatically satisfy the proper dependencies unless you have older versions of gmp or nettle in your system, if that's the case, please uninstall them first.
Attachment | Size | Date |
---|---|---|
stoken-0.92-1.armv7hl.rpm | 185.67 KB | 29/12/2017 - 06:55 |
Latest release (0.92) from original source https://github.com/cernekee/stoken compiled for armv7hl
Recent comments