Diff to Previous Revision
--- revision 3 2013-06-03 16:40:35
+++ revision 4 2013-08-11 08:27:14
@@ -1,556 +1,1 @@
-#system v.2 #updated.
-print "\n\n[--system v.2 - program by jay. -type help for hint--]\n\n"
-print "\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"
-
-def mainframe(memory):
- print "\n----------------------------------------------------------------------------"
- print "\n 1.) Main Menu\n\n"
- print " ---------------------"
- print " - MAINFRAME - LOGIN -"
- print " ---------------------"
- print "\n no unauthorised access beyond this point"
- print " offenders will be prosecuted"
- print ""
- print "\n * A C C E S S - D E N I E D *\n"
- print "\n login password required - user unknown\n"
- print ""
- print ""
- print "enter login password:"
-
- cmdlist = ["f.copy", "HCRAESER", "pwdcrk", "1", "cypcrk", "proxy", "monitor"]
- cmd = getcmd(cmdlist)
-
- if cmd == "1":
- start(memory)
- elif cmd == "f.copy":
- if "f.copy" in memory:
- print "\n\n error. no files to copy...."
- mainframe(memory)
- elif cmd == "pwdcrk":
- if "pwdcrk" in memory:
- print "\nlaunching pwdcrk ...."
- print "\ncracking ...."
- print "\ncracking ...."
- print "\ncracking ...."
- print "\npwdcrk failed ...."
- print "\nALERT - SECURITY BREACH - USER DISCONNECTED\n"
- print "GAME OVER\n"
- exit(0)
- else:
- print "\n\n INVALID PASSWORD"
- mainframe(memory)
- elif cmd == "cypcrk":
- print "\nlaunching cypcrk ..."
- print "\ncracking ...."
- print "\ncracking ...."
- print "\ncracking ...."
- print "\ncypcrk failed ...."
- print "\nALERT - SECURITY BREACH - USER DISCONNECTED\n"
- print "GAME OVER\n"
- exit(0)
- elif cmd == "proxy" or cmd == "monitor":
- print "\nlaunching ...."
- print "\n...."
- print "\n...."
- print "\n...."
- print "\n -error. proxy and moniter already bypassed\n"
- mainframe(memory)
- elif cmd == "HCRAESER":
- print "\nverifying ...."
- print "\n...."
- print "\n...."
- print "\nauthenticating ....\n"
- print "\nP A S S W O R D - A C C E P T E D\n"
- print "\n(( A C C E S S - G R A N T E D ))\n"
- print "\n...."
- print "\n...."
- research(memory)
- else:
- print "\n\n INVALID PASSWORD"
- mainframe(memory)
-
-def research(memory):
- print "\n---------------------------------------------------------------------------"
- print "\n RESEARCH TERMINALS"
- print "\n---------------------------------------------------------------------------\n"
- print "\n 1.) Terminal - A"
- print "\n 2.) Terminal - B"
- print "\n 3.) Terminal - C"
- print "\n 4.) Terminal - D"
- print "\n 5.) CONTROL TERMINAL"
- print ""
- print " 6.) Mainframe Login\n\n"
-
- cmdlist = ["1", "2", "3", "4", "5", "6"]
- cmd = getcmd(cmdlist)
-
- if cmd == "1":
- terma(memory)
- elif cmd == "2":
- termb(memory)
- elif cmd == "3":
- termc(memory)
- elif cmd == "4":
- termd(memory)
- elif cmd == "5":
- terme(memory)
- elif cmd == "6":
- mainframe(memory)
- else:
- print "\n\n error. invalid command\n"
- research(memory)
-
-def terma(memory):
- print "---------------------------------------------------------------------------"
- print " TERMINAL - A"
- print "---------------------------------------------------------------------------"
- print "\nload virus.... 1.) Main Menu"
-
- cmdlist = ["vir.a", "1"]
- cmd = getcmd(cmdlist)
-
- if cmd == "vir.a":
- if "vir.a" in memory:
- print "\nloading virus ...."
- print "\n...."
- print "\n...."
- print "\nterminal A infected"
- print "\npasscode = [B]"
- terma(memory)
- else:
- print "\n\n error. vir.a file not found"
- terma(memory)
- elif cmd == "1":
- research(memory)
- else:
- print "\n\n error. invalid command-"
- terma(memory)
-
-def termb(memory):
- print "---------------------------------------------------------------------------"
- print " TERMINAL - B"
- print "---------------------------------------------------------------------------"
- print "\nload virus.... 1.) Main Menu"
-
- cmdlist = ["vir.b", "1"]
- cmd = getcmd(cmdlist)
-
- if cmd == "vir.b":
- if "vir.b" in memory:
- print "\nloading virus ...."
- print "\n...."
- print "\n...."
- print "\nterminal B infected"
- print "\npasscode = [O]"
- termb(memory)
- else:
- print "\n\n error. vir.b file not found"
- termb(memory)
- elif cmd == "1":
- research(memory)
- else:
- print "\n\n error. inavlid command-"
- termb(memory)
-
-def termc(memory):
- print "---------------------------------------------------------------------------"
- print " TERMINAL - C"
- print "---------------------------------------------------------------------------"
- print "\nload virus.... 1.) Main Menu"
-
- cmdlist = ["vir.c", "1"]
- cmd = getcmd(cmdlist)
-
- if cmd == "vir.c":
- if "vir.c" in memory:
- print "\nloading virus ...."
- print "\n...."
- print "\n...."
- print "\nterminal C infected"
- print "\npasscode = [S]"
- termc(memory)
- else:
- print "\n\n error. vir.c file not found"
- termc(memory)
- elif cmd == "1":
- research(memory)
- else:
- print "\n\n error. invalid command-"
- termc(memory)
-
-def termd(memory):
- print "---------------------------------------------------------------------------"
- print " TERMINAL - D"
- print "---------------------------------------------------------------------------"
- print "\nload virus.... 1.) Main Menu"
-
- cmdlist = ["vir.d", "1"]
- cmd = getcmd(cmdlist)
-
- if cmd == "vir.d":
- if "vir.d" in memory:
- print "\nloading virus...."
- print "\n...."
- print "\n...."
- print "\nterminal D infected"
- print "\npasscode = [S]"
- termd(memory)
- else:
- print "\n\n error. vir.d file not found"
- termd(memory)
- elif cmd == "1":
- research(memory)
- else:
- print "\n\n error. invalid command-"
- termd(memory)
-
-def terme(memory):
- print "---------------------------------------------------------------------------"
- print " CONTROL - TERMINAL"
- print "---------------------------------------------------------------------------"
- print "enter system shutdown passcode .... 1.) Main Menu"
-
- cmdlist = ["BOSS", "1"]
- cmd = getcmd(cmdlist)
-
- if cmd == "BOSS":
- print "\nverifying ...."
- print "\n...."
- print "\nsys.delete ...."
- print "\n...."
- print "\n...."
- print "\nsys.shutdown ...."
- print "\n...."
- print "\nshutdown complete."
- gameover(memory)
- elif cmd == "1":
- research(memory)
- else:
- print "\n\n INVALID PASSCODE"
- terme(memory)
-
-def gameover(memory):
- print "---------------------------------------------------------------------------"
- print " MISSION - COMPLETE"
- print "---------------------------------------------------------------------------"
- print "\nWell done User , You have successfully infected the"
- print "\nresearch terminals and shutdown the control system."
- print "\nThe hideous research into experimental human disease is halted for now."
- print "\nTo make sure all research data is destroyed use the pwdcrk to trigger explosives"
- print "\nand put central systems out of buisness once and for all ....."
- print "\notherwise TYPE quit to disconnect from system.\n"
- print "\n trigger explosives:"
-
- cmdlist = ["pwdcrk"]
- cmd = getcmd(cmdlist)
-
- if cmd == "pwdcrk":
- if "pwdcrk" in memory:
- print "\nlaunching pwdcrk ...."
- print "\n...."
- print "\ntriggering explosives ...."
- print "\ndetonation in ...."
- print "\n 5"
- print "\n 4"
- print "\n 3"
- print "\n 2"
- print "\n 1"
- print "\n ...."
- print "\n detonation complete"
- print "\n\n GAME OVER -thanks for playing see you in system v.3\n\n"
- exit(0)
- else:
- print "\n error. no pwdcrk found-"
- print "\ncentral systems will live to fight another day..\n"
- print "GAME OVER\n"
- exit(0)
- else:
- print "\n INVALID EXPLOSIVE TRIGGER\n"
- gameover(memory)
-
-
-def admin(memory):
- print " ----------------"
- print " -ADMINISTRATION-"
- print " ----------------"
- print ""
- print ""
- print " 1.) Fileserver\n"
- print " 2.) User List\n"
- print " 3.) Back\n"
-
- cmdlist = ["1", "2", "3"]
- cmd = getcmd(cmdlist)
-
- if cmd == "1":
- files(memory)
- elif cmd == "2":
- users(memory)
- elif cmd == "3":
- start(memory)
- else:
- print "\n\n error. invalid command-"
- admin(memory)
-
-def files(memory, items=["pwdcrk", "vir.a", "vir.b", "vir.c", "vir.d"]):
- print " ------------"
- print " -FILESERVER-"
- print " ------------"
- print "\n 1.) back\n"
- print "\n WARNING \n"
- print " these files are highly malicious\n"
-
- if len(items) > 0:
- for item in items:
- print " -- %s" % item
- else:
- print "no files in server."
-
- cmdlist = ["f.copy pwdcrk", "f.copy vir.a", "f.copy vir.b", "f.copy vir.c", "f.copy vir.d", "1"]
- cmd = getcmd(cmdlist)
-
- if cmd == "f.copy pwdcrk":
- print "\nlaunching f.copy .."
- print "\ncopying pwdcrk .."
- print "\n...."
- print "\n...."
- print "\ncopy complete."
- memory.append("pwdcrk")
- items = ["pwdcrk"]
- files(memory)
- elif cmd == "f.copy vir.a":
- print "\nlaunching f.copy .."
- print "\ncopying vir.a .."
- print "\n...."
- print "\n...."
- print "\ncopy complete."
- memory.append("vir.a")
- items = ["pwdcrk", "vir.a"]
- files(memory)
-
- elif cmd == "f.copy vir.b":
- print "\nlaunching f.copy .."
- print "\ncopying vir.b .."
- print "\n...."
- print "\n...."
- print "\ncopy complete."
- memory.append("vir.b")
- items = ["pwdcrk", "vir.a", "vir.b"]
- files(memory)
-
- elif cmd == "f.copy vir.c":
- print "\nlaunching f.copy .."
- print "\ncopying vir.c .."
- print "\n...."
- print "\n...."
- print "\ncopy complete."
- memory.append("vir.c")
- items = ["pwdcrk", "vir.a", "vir.b", "vir.c"]
- files(memory)
-
- elif cmd == "f.copy vir.d":
- print "\nlaunching f.copy .."
- print "\ncopying vir.d .."
- print "\n...."
- print "\n...."
- print "\ncopy complete."
- memory.append("vir.d")
- items = ["pwdcrk", "vir.a", "vir.b", "vir.c", "vir.d"]
- files(memory)
-
- elif cmd == "1":
- admin(memory)
- else:
- print"\n\n error. invalid command-"
- files(memory)
-
-def users(memory):
- print " -----------"
- print " USER - LIST"
- print " -----------\n\n"
- print " 1.) David Banner - Company Director\n"
- print " 2.) Luke Skywalker - Public relations\n"
- print " 3.) Bruce Wayne - Treasurer\n"
- print " 4.) Kevin Flynn - Information & Technology\n"
- print "\n 5.) Administration Menu"
- print ""
-
- cmdlist = ["1", "2", "3", "4", "5"]
- cmd = getcmd(cmdlist)
-
- if cmd == "1":
- david(memory)
- elif cmd == "2":
- luke(memory)
- elif cmd == "3":
- bruce(memory)
- elif cmd == "4":
- edward(memory)
- elif cmd == "5":
- admin(memory)
- else:
- print "\n\n error. invalid command-\n"
- users(memory)
-
-def david(memory):
- print " -----------------"
- print " CENTRAL - SYSTEMS"
- print " -----------------"
- print ""
- print " David Banner\n"
- print " Phone: 022453267 - Address: 23 Hulk Street\n"
- print " South District 2111\n"
- print ""
- print " Mainframe password: RE\n\n"
- print " 1.) main menu\n"
-
- cmdlist = ["1"]
- cmd = getcmd(cmdlist)
-
- if cmd == "1":
- users(memory)
- else:
- print "\n\n error. invalid command-\n"
- david(memory)
-
-def luke(memory):
- print " -----------------"
- print " CENTRAL - SYSTEMS"
- print " -----------------"
- print ""
- print " Luke Skywalker\n"
- print " Phone: 0234742168 - Address: 46 Darth Street\n"
- print " East District 2112\n"
- print ""
- print " Mainframe password: SE\n\n"
- print " 1.) main menu\n"
-
- cmdlist = ["1"]
- cmd = getcmd(cmdlist)
-
- if cmd == "1":
- users(memory)
- else:
- print "\n\n error. invalid command-\n"
- luke(memory)
-
-def bruce(memory):
- print " -----------------"
- print " CENTRAL - SYSTEMS"
- print " -----------------"
- print ""
- print " Bruce Wayne\n"
- print " Phone: 0416112778 - Address: 111 Joker avenue\n"
- print " West District 2113\n"
- print ""
- print " Mainframe password: AR\n\n"
- print " 1.) main menu\n"
-
- cmdlist = ["1"]
- cmd = getcmd(cmdlist)
-
- if cmd == "1":
- users(memory)
- else:
- print "\n\n error. invalid command-\n"
- bruce(memory)
-
-def edward(memory):
- print " -----------------"
- print " CENTRAL - SYSTEMS"
- print " -----------------"
- print ""
- print " Kevin Flynn\n"
- print " Phone: 0112434666 - Address: 99 Encom tower\n"
- print " North District 2113\n"
- print ""
- print " Mainframe password: CH\n\n"
- print " 1.) main menu\n"
-
- cmdlist = ["1"]
- cmd = getcmd(cmdlist)
-
- if cmd == "1":
- users(memory)
- else:
- print "\n\n error. invalid command-\n"
- edward(memory)
-
-def start(memory):
- print "----------------------------------------------------------------------------"
- print ""
- print ""
- print ""
- print " Welcome to"
- print ""
- print ""
- print " C E N T R A L - S Y S T E M S"
- print ""
- print ""
- print " the world leader in medicine development\n"
- print ""
- print " 1.) MAINFRAME\n"
- print " 2.) ADMINISTRATION\n"
- print ""
- print ""
- print ""
- print "----------------------------------------------------------------------------"
- cmdlist = ["1", "2"]
- cmd = getcmd(cmdlist)
-
- if cmd == "1":
- mainframe(memory)
- elif cmd == "2":
- admin(memory)
- else:
- print "\n error. invalid command-\n"
- start(memory)
-
-def getcmd(cmdlist):
- cmd = raw_input("\nuser:> ")
- if cmd in cmdlist:
- return cmd
- elif cmd == "quit":
- print "\ndisconnecting from system ...."
- print "\n...."
- print "\n...."
- print "\nuser logged out.\n"
- exit(0)
- elif cmd == "help":
- print "\nTYPE memory to see what tools you have, task to view mission objective, "
- print "tip for another hint or quit to disconnect from system\n"
- return getcmd(cmdlist)
- elif cmd == "task":
- print "\nDestroy the research terminals and shutdown the control"
- print "system."
- return getcmd(cmdlist)
- elif cmd == "memory":
- print "\nfiles in memory:\n"
- for item in memory:
- print "-- %s" % item
- return getcmd(cmdlist)
- elif cmd == "tip":
- print "\n some things are better backwards"
- return getcmd(cmdlist)
- else:
- print "\n error. invalid command-\n"
- return getcmd(cmdlist)
-
-
-if __name__ == "__main__":
- memory = ["f.copy", "proxy", "monitor", "cypcrk"]
- start(memory)
-
-
+print(' ADMIN PLEASE REMOVE THIS RECIPE ')