Last active
November 15, 2019 03:31
-
-
Save kidbrax/b800d44eb7ce1114274ca7a9198ec065 to your computer and use it in GitHub Desktop.
Creates a QR code simulating Symantec's VIP Access that you can then use in your preferred authenticator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First install python-vipacess | |
pip3 install python-vipaccess | |
# the run it using the defaults | |
vipaccess provision | |
# then read the necessary info from the .vipaccess file | |
CREDENTIAL_ID=$(cat ~/.vipaccess | grep id | awk '{ print $2 }') | |
CREDENTIAL_SECRET=$(cat ~/.vipaccess | grep secret | awk '{ print $2 }') | |
# and then form the necessary URL | |
AUTH_URL="otpauth://totp/VIP%20Access:$CREDENTIAL_ID?secret=$CREDENTIAL_SECRET&issuer=Symantec&algorithm=SHA1&digits=6" | |
# if you dont have qrencode installed, use brew to install it: | |
brew install qrencode | |
# then create your QR code | |
qrencode -t UTF8 $AUTH_URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment