Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###############################
- #############Login#############
- ###########Coded By############
- ##########Zack Ruddle##########
- ###############################
- from sys import exit
- def Login():
- password_tries = 5
- password = "dcgnumber1"
- while password_tries > 0:
- password_input = raw_input("Enter Passcode: ")
- if password_input != password:
- password_tries -= 1
- if password_tries == 0:
- print "You have reached the maximum amount of attempts, Program shutting down."
- raw_input("Press <ENTER> to exit...")
- exit(1)
- else:
- Pass
- else:
- break
- def Pass():
- username_tries = 3
- username = ('Admin', 'root', 'zack')
- while username_tries > 0:
- username_input = raw_input("/n" +"Enter Username: ")
- if username_input != username:
- username_tries -= 1
- if username_tries == 0:
- print "You have reached the maximum amount of attempts, Program shutting down."
- raw_input("Press <ENTER> to exit...")
- exit(1)
- else:
- Main
- else:
- break
- def Main():
- print "Welcome to the secret page!"
- print "program now shutting down"
- raw_input ("Press <Enter> to exit...")
- exit(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement