a guest Mar 24th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import pyotp, time, math
- base32code = "HIJG6S763URLS34M"
- def getCount(blockDuration):
- seconds = time.time()
- blocks = seconds/blockDuration
- blocksFloored = math.floor(blocks)
- blocksInt = int(blocksFloored)
- hotp = pyotp.HOTP(base32code)
- notCompleted = True
- answer = raw_input("Code: ")
- if(answer == hotp.at(getCount(60))):
- notCompleted = False
RAW Paste Data