commit
5c6d047452
14
assistant.py
14
assistant.py
|
@ -302,6 +302,7 @@ def game_loop():
|
||||||
print("Basic commands are:")
|
print("Basic commands are:")
|
||||||
print("(S)tart, (N)ext, (H)elp, (C)heck, (E)xit")
|
print("(S)tart, (N)ext, (H)elp, (C)heck, (E)xit")
|
||||||
while True:
|
while True:
|
||||||
|
try:
|
||||||
print("Waiting for your input:")
|
print("Waiting for your input:")
|
||||||
command = input()
|
command = input()
|
||||||
command = command.lower()
|
command = command.lower()
|
||||||
|
@ -345,6 +346,19 @@ def game_loop():
|
||||||
give_hint(game, hint_giver)
|
give_hint(game, hint_giver)
|
||||||
else:
|
else:
|
||||||
print("Unknown command. Enter another command or try (H)elp.")
|
print("Unknown command. Enter another command or try (H)elp.")
|
||||||
|
except EOFError:
|
||||||
|
print("Unknown command. Enter another command or try (H)elp.")
|
||||||
|
print("If you want to exit the assistant, please use the `exit` command.")
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
print("You sent a keyboard interrupt to the program.")
|
||||||
|
print("Would you like to exit?")
|
||||||
|
print("This will NOT save your log or end the game. yes/no")
|
||||||
|
confirmation = input()
|
||||||
|
confirmation = confirmation.lower()
|
||||||
|
if confirmation in ("y", "yes"):
|
||||||
|
return
|
||||||
|
else:
|
||||||
|
print("Not exiting. Continuing normal operation.")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
@ -31,7 +31,7 @@ level4:
|
||||||
"Password cracking": "The password appears to be encrypted with a simple MD5 hash. A tool like John the Ripper, which is already installed on the computer, could be used to crack the password."
|
"Password cracking": "The password appears to be encrypted with a simple MD5 hash. A tool like John the Ripper, which is already installed on the computer, could be used to crack the password."
|
||||||
"Command line options": 'The arguments you will need to crack the password are "--format=" and "--wordlist="'
|
"Command line options": 'The arguments you will need to crack the password are "--format=" and "--wordlist="'
|
||||||
"Database interaction": "Use the [SQL] button in the web shell to interact with log into local databases and interact with them using SQL queries."
|
"Database interaction": "Use the [SQL] button in the web shell to interact with log into local databases and interact with them using SQL queries."
|
||||||
"Solution": "Place to hash in to_crack.txt. Run `john --format=raw-md5 --wordlist=passwords.txt to_crack.txt` to get the password."
|
"Solution": "Place the hash in to_crack.txt. Run `john --format=raw-md5 --wordlist=passwords.txt to_crack.txt` to get the password."
|
||||||
level5:
|
level5:
|
||||||
level5:
|
level5:
|
||||||
"Database interaction": "You can communicate with local databases using SQL queries."
|
"Database interaction": "You can communicate with local databases using SQL queries."
|
||||||
|
|
Reference in New Issue