-
-
Save Calorion/8aea56001aa8e3354ac7737fda26696e 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. Slightly modified for use with macOS.
This file contains hidden or 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
# Make sure Python is installed | |
python --version | |
# [Install pip](https://copygrammer.com/how-to-install-pip-and-codeintel-on-mac-os-mojave/) | |
sudo easy_install pip | |
# (it will ask for your admin password) | |
# [Install python-vipaccess](https://stackoverflow.com/questions/18199853/error-could-not-create-library-python-2-7-site-packages-xlrd-permission-den) | |
pip3 install python-vipaccess --user | |
# For some reason, on my system, the vipaccess tool wasn’t added to one of my $PATH directories, so | |
ln -s ~/Library/Python/2.7/bin/vipaccess /usr/local/bin/ | |
# Run vipaccess 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" | |
# Install [homebrew](https://brew.sh/) | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” | |
# Install qrencode | |
brew install qrencode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment