Welcome, guest | Sign In | My Account | Store | Cart
print('ADMIN PLEASE REMOVE THIS RECIPE')

Diff to Previous Revision

--- revision 2 2013-06-17 13:55:59
+++ revision 3 2013-08-11 08:29:57
@@ -1,289 +1,1 @@
-# system.v1
-print "\n\n\n[--system v.1 - program by jay.    -type help for hint.--]\n\n"
-print "\n\n\nconnecting to central systems ...."
-print "\n...."
-print "\n...."
-print "\n...."
-print "\nlaunching proxy ...."
-print "\nlaunching monitor ...."
-print "\n...."
-print "\n...."
-print "\nproxy bypassed"
-print "\nmonitor bypassed"
-print "\n...."
-print "\n...."
-print "\nconnection established\n"
-	
-def mainframe(inventory):
-	print "\n\n-----------------------------------------"
-	print "          MAINFRAME - LOGIN"
-	print "-----------------------------------------\n\n"
-	print "\n\n    *** A C C E S S - D E N I E D ***\n\n"
-	print "\n  login password required - user unknown\n"
-	
-	cmdlist = ["pwd crack", "f.copy", "dic crack", "proxy", "monitor", "cyp crack", "back",]
-	cmd = getcmd(cmdlist)
-	
-	if cmd == "proxy":
-		print "\nlaunching proxy ...."
-		print "\n...."
-		print "\n...."
-		print "\n...."
-		print "\n error-"
-		print "\n  proxy already bypassed-"
-		mainframe(inventory)
-		
-	elif cmd == "monitor":
-		print "\nlaunching monitor ...."
-		print "\n...."
-		print "\n...."
-		print "\n...."
-		print "\n error-"
-		print "\n  monitor already bypassed-"
-		mainframe(inventory)
-		
-	elif cmd == "f.copy":
-		if "f.copy" in inventory:
-			print "\n\n error. no files to copy ....\n"
-			mainframe(inventory)
-			
-	elif cmd == "cyp crack":
-		print "\nlaunching cyp crack ...."
-		print "\ncracking ...."
-		print "\ncracking ...."
-		print "\ncracking ...."
-		print "\nALERT - SECURITY BREACH - USER DISCONNECTED"
-		print "\nGAME OVER\n"
-		exit(0)
-		
-	elif cmd == "pwd crack":
-		if "pwd crack" in inventory:
-			print "\nlaunching pwd crack ...."
-			print "\ncracking ...."
-			print "\ncracking ...."
-			print "\ncracking ....\n"
-			print "\n P A S S W O R D - A C C E P T E D"
-			print "\n\n(((( A C C E S S - G R A N T E D ))))    \n"
-			print "\nlaunching f.copy ...."
-			print "\ncopying file ...."
-			print "\nfile copy complete."
-			print "\nsys.delete ...."
-			print "\ndeleteing ...."
-			print "\ndeleteing ...."
-			print "\nsys.shutdown ...."
-			print "\nshutdown complete.\n"
-			print "\nyou obtained the file required"
-			print "and shut down the system good job\n"
-			print "GAME OVER\n"
-			exit(0)
-			
-		else:
-			print "\n\n   file not found ....\n"
-			mainframe(inventory)
-			
-	elif cmd == "dic crack":
-		if "dic crack" in inventory:
-			print "\nlaunching dic crack ...."
-			print "\ncracking ...."
-			print "\ncracking ...."
-			print "\ncracking ...."
-			print "\nALERT - SECURITY BREACH - USER DISCONNECTED"
-			print "\nGAME OVER\n"
-			exit(0)
-		else:
-			print "\n\n   file not found ....\n"
-			mainframe(inventory)
-	elif cmd == "back":
-		start(inventory)
-		
-def admin(inventory):
-	print "\n   -----"
-	print "   ADMIN"
-	print "   -----\n"
-	print "1.) back."
-	print "2.) files.\n"
-	
-	cmdlist = ["1", "2"]
-	cmd = getcmd(cmdlist)
-	
-	if cmd == "1":
-		start(inventory)
-	elif cmd == "2":
-		files(inventory)
-	#else:
-		#print "  syntax error" #this should not execute
-		#exit(0)
-		
-def files(inventory, items=["pwd crack", "dic crack\n"]):
-	print "\n ----------"
-	print " file list:"
-	print " ----------\n"
-	if len(items) > 0:
-		for item in items:
-			print "-> %s" % item
-	#else:
-		#print "nothing."
-	#print "\ntake 'pwd crack' or go 'back'.\n"
-	
-	cmdlist = ["f.copy", "back"]
-	cmd = getcmd(cmdlist)
-	
-	if cmd == "f.copy":
-		print "\ncopying files ...."
-		print "\n...."
-		print "\n...."
-		print "\n...."
-		print "\n\nfile copy complete.\n"
-		inventory.append("pwd crack")
-		inventory.append("dic crack")
-		items = ["pwd crack", "dic crack"]
-		files(inventory)
-		
-	elif cmd == "back":
-		admin(inventory)
-	#else:
-		#print "  syntax error." #this should not execute
-		#exit(0)
-		
-def start(inventory):
-	print "\n------------------------------------------"
-	print "\n      C E N T R A L - S Y S T E M S         "
-	print "\n------------------------------------------\n"
-	print "\n             1.) MAINFRAME" 
-	print "\n             2.) ADMIN\n\n"
-	cmdlist = ["1", "2"]
-	cmd = getcmd(cmdlist)
-	
-	if cmd == "1":
-		mainframe(inventory)
-	elif cmd == "2":
-		admin(inventory)
-	else:
-		print "something went wrong" #this should not execute
-		exit(0)
-		
-def getcmd(cmdlist):
-	cmd = raw_input("\nuser:> ")
-	if cmd in cmdlist:
-		return cmd
-	elif cmd == "quit":
-		print "\ndisconnecting from server ...."
-		print "\n...."
-		print "\n...."
-		print "\nuser logged out.\n"
-		exit(0)
-	elif cmd == "help":
-		print "\nTYPE inventory to see what tools you have, back to go back"
-		print "or quit to disconnect from system\n"
-		return getcmd(cmdlist)
-	elif cmd == "inventory":
-		print "\nyour inventory contains:\n"
-		for item in inventory:
-			print "--> %s" % item
-		return getcmd(cmdlist)
-	else:
-		print "\n  error. invalid command-\n"
-		return getcmd(cmdlist)
-		
-if __name__ == "__main__":
-	inventory = ["f.copy" , "proxy", "monitor", "cyp crack"]
-	start(inventory)
-	
-	
-#################
-# a tkinter test.
-#################
-
-#testgui.py
-from Tkinter import *
-print "\n\n[[-- program by jay. --]]\n\n"
-print "\n\n\nconnecting...."
-print "\n...."
-print "\n...."
-print "\nconnection established.\n"
-
-def mainframe(self):
-	print "\n\n\n   *** A C C E S S - D E N I E D ***\n\n"
-	print "\n  login password required - user unknown\n"
-		
-class App:
-
-		def __init__(self, master):
-			frame = Frame(master)
-			frame.pack()
-		
-			self.ab = Button(frame, text="  ck.1  ", command=self.ab)
-			self.ab.pack(side=LEFT)
-			self.cd = Button(frame, text="  ck.2  ", command=self.cd)
-			self.cd.pack(side=LEFT)
-			self.ef = Button(frame, text="  ck.3  ", command=self.ef)
-			self.ef.pack(side=LEFT)
-			self.gh = Button(frame, text="  ck.4  ", command=self.gh)
-			self.gh.pack(side=LEFT)
-		
-		def gh(self):
-			print "A]'m%3 2+?@!S Z&X=># " * 3000
-			print "\nPASSWORD = kernel\n"
-			root.destroy()
-			mainframee(self)
-			
-		def ab 	(self):
-			print "XS#!(h >:+qzx 45z~ky |_7!>? #!zzBl " * 3000
-			print "\nALERT - SECURITY BREACH - USER DISCONNECTED\n"
-			print "\nGAME OVER\n"
-			root.destroy()
-			exit(0)
-				
-		def cd(self):
-			print "A]'m%3 2+?@!S Z&X=># " * 3000
-			print "\n\nCRACK FAILED "
-			mainframe(self)
-		
-		def ef(self):
-			print "ZXCV BNML KJHG FDSA QWER TYUI OPZX" * 3000
-			print "\n\nCRACK FAILED "
-			mainframe(self)
-		
-def mainframee(self):
-			print "\n\n  *** A C C E S S - D E N I E D ***\n\n"
-			print "\nenter password:\n"
-			
-			cmd = raw_input("\nuser:> ")
-			if cmd == "kernel":
-				print "\n\n  ((( A C C E S S - G R A N T E D )))"
-				print "\n..."
-				print "\n..."
-				print "\n..."
-				print "\nGAME OVER\n"
-				exit(0)
-			elif cmd == "quit":
-				print "\ndisconnecting...."
-				print "\n...."
-				print "\n...."
-				print "\nuser logged out.\n"
-			else:
-				mainframee(memory)
-			
-def getcmd(cmdlist):
-	cmd = raw_input("\nuser:> ")
-	if cmd in cmdlist:
-		return cmd
-	elif cmd == "quit":
-		print "\ndisconnecting...."
-		print "\n...."
-		print "\n...."
-		print "\nuser logged out.\n"
-		exit(0)
-	else:
-		print "\n error. invalid command-"
-		return getcmd(cmdlist)
-	
-		
-if __name__ == "__main__":
-	memory = ["f.copy"]
-	mainframe(memory)
-	
-root = Tk()
-app = App(root)
-root.mainloop()			
-	
+print('ADMIN PLEASE REMOVE THIS RECIPE')

History