import hashlib import sys import os import time username = "9228c08e5c18c1a5ea4ae6d152b2fbc8" #Andorzen password = "6b2244ecf5881e4aa6d4235d16be7b48" #123qweasdzxc security = "bc6e1826a881c674f2400c75e79bdfbb" #21337 adm = "00b538a09bc3ddf146fc77ecff209450" #kurisuchan #Use this website "http://www.md5hashgenerator.com/" to make your text into hash. #Note: Hash is case-sensitive ######################## # Defines # ######################## ###### #User# ###### def usr(): input = raw_input("Please enter your username: ") if hashlib.md5(input).hexdigest() == username: print "Checking Input..." time.sleep(1) print "Checking the server for the selected user account..." time.sleep(3) print "User account found!" time.sleep(2) pw() elif hashlib.md5(input).hexdigest() == adm: os.startfile( "div Andorzen.txt" ) else: print "Checking Input..." time.sleep(1) print "checking the server for the selected user account..." time.sleep(3) print "User was not found in the database, please try again." usr() ###### #Pass# ###### def pw(): input = raw_input("Please enter your password: ") if hashlib.md5(input).hexdigest() == password: print "Authenticating..." time.sleep(3) print "Authentication Successful." time.sleep(1) key() elif hashlib.md5(input).hexdigest() == adm: os.startfile( "div Andorzen.txt" ) else: print "Authenticating..." time.sleep(3) print "Incorrect password, please try again" pw() ##### #Key# ##### def key(): input = raw_input("Please enter your 5-digit Security Code: ") if hashlib.md5(input).hexdigest() == security: print "Checking Security Code..." time.sleep(3) print "Security Key accepted." os.startfile( "div Andorzen.txt" ) #Change this file to whatever you want. time.sleep(5) quit() else: print "Checking Security Code..." time.sleep(3) print "Invalid Security Code." time.sleep(1) print "Access Denied." time.sleep(3) quit() while True: print "Welcome to Christian's Security Server" time.sleep(1) print "Please log in with your given username" input = raw_input("Username: ") if hashlib.md5(input).hexdigest() == username: print "Checking input..." time.sleep(1) print "Checking the server for the selected user account..." time.sleep(3) print "User Account data found!" time.sleep(2) print "Connecting to the server..." time.sleep(5) print "Connection Successful." pw() elif hashlib.md5(input).hexdigest() == adm: os.startfile( "div Andorzen.txt" ) time.sleep(2) quit() else: print "Checking input..." time.sleep(1) print "Checking the server for the selected user account..." time.sleep(3) print "User was not found in the database, please try again"