Skip to content

Instantly share code, notes, and snippets.

@kidbrax
Last active November 15, 2019 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kidbrax/b800d44eb7ce1114274ca7a9198ec065 to your computer and use it in GitHub Desktop.
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
# 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