SHARE
TWEET

Simple Password Mechanism [Part 1]

a guest May 19th, 2016 1,108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #############################################
  2. #                                           #
  3. #     Simple Password Mechanism [Part 1]    #
  4. #               |-TheDoctor-|               #
  5. #                                           #
  6. #############################################
  7.  
  8. import sys
  9.  
  10. if not len(sys.argv) == 2:
  11.     print "Syntax: simplePassword.py <Password>"
  12.     exit()
  13.    
  14. password = ""
  15. intPass = "83,117,112,101,114,83,101,99,117,114,101,80,97,115,115,119,111,114,100,87,104,105,99,104,67,97,110,116,66,101,67,114,97,99,107,101,100,87,105,116,104,111,117,116,66,108,97,99,107,109,97,103,105,99"
  16.  
  17. intPass = intPass.split(",")
  18.  
  19. for c in intPass:
  20.     password = password + chr(int(c))
  21.    
  22. if sys.argv[1] == password:
  23.     print "Wow, that's a great beginning!"
  24.     print "If you think again about that challenge, you see that it wasn't that hard, isn't it?"
  25.    
  26. else:
  27.     print "Don't try it, dude. Do it!"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top