Sign inSign up

viranch/vipaccess

By viranch

•Updated almost 8 years ago

Generate a new VIP Credential ID and corresponding TOTP secret

Image
2

2.3K

viranch/vipaccess repository overview

⁠Credits

Cyrozap⁠ for reversing the protocol and writing a free client⁠ that I shamelessly copied to generate.py (with 1 line change) in this directory.

⁠How it works

  • Generate a new VIP Credential ID and corresponding TOTP secret
  • Register the Credential ID with your organization
  • Register the TOTP secret with Google Authenticator (or your favourite OTP client)
  • Generate OTP from your client

⁠Setup

Using docker:

docker pull viranch/vipaccess

OR Building docker image:

git clone git://github.com/viranch/scripts.git
cd scripts/vipaccess
docker build -t viranch/vipaccess .

OR Without docker:

git clone git://github.com/viranch/scripts.git
cd scripts/vipaccess
virtualenv vip
source ./vip/bin/activate
pip install python-vipaccess
deactivate

⁠Use

  • Generate a new VIP Credential ID
→ ~ » docker run --rm -it viranch/vipaccess  # without docker: source ./vip/bin/activate && python generate.py && deactivate
otpauth://totp/VIP%20Access:VSMT<RANDOM>?secret=<SECRET>&issuer=Symantec
BE AWARE that this new credential expires on this date: <ISO date>
→ ~ »
  • Register the VSMT<RANDOM> part as new credential ID with your organization
  • Save <SECRET> as your TOTP secret
  • Generate OTP (using my favourite CLI OTP client)
→ ~ » sudo brew install oath-toolkit
→ ~ » oathtool --totp -b <SECRET>
927899
→ ~ »
  • (Optional) Clean up
→ vipaccess » rm -rf ./vip

⁠Have fun

Now generate your OTPs without the proprietary Symantec software

⁠Pro tip

  • Install and run FastScripts⁠
  • Put the following in ~/Library/Scripts/vip.sh, replacing $SECRET with your OTP secret
#!/bin/bash
otp=$(oathtool --totp -b $SECRET)
osascript -e 'tell application "System Events"' -e 'delay 0.1' -e 'keystroke "'$otp'"' -e 'end tell' &
  • chmod a+x ~/Library/Scripts/vip.sh
  • Set a keyboard shortcut in FastScripts for this script
  • Whenever prompted for OTP, use the shortcut and the OTP will be typed

Tag summary

Content type

Image

Digest

Size

192.6 MB

Last updated

almost 8 years ago

docker pull viranch/vipaccess