Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import pyotp, time, math
  2.  
  3. base32code = "HIJG6S763URLS34M"
  4.  
  5. def getCount(blockDuration):
  6. seconds = time.time()
  7. blocks = seconds/blockDuration
  8. blocksFloored = math.floor(blocks)
  9. blocksInt = int(blocksFloored)
  10. return(blocksInt)
  11.  
  12. hotp = pyotp.HOTP(base32code)
  13. notCompleted = True
  14. while(notCompleted):
  15. answer = raw_input("Code: ")
  16. if(answer == hotp.at(getCount(60))):
  17. print("SYSGSNYHJYF4ZJXK")
  18. notCompleted = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement