Advertisement
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)
- return(blocksInt)
- hotp = pyotp.HOTP(base32code)
- notCompleted = True
- while(notCompleted):
- answer = raw_input("Code: ")
- if(answer == hotp.at(getCount(60))):
- print("SYSGSNYHJYF4ZJXK")
- notCompleted = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement