From e6f383ca6bd5af46c67b971581d51dba10e1339b Mon Sep 17 00:00:00 2001 From: Ophir LOJKINE Date: Sun, 19 Jan 2020 02:10:13 +0100 Subject: [PATCH 1/2] Update crack.py --- crack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crack.py b/crack.py index e13d160..5e28870 100644 --- a/crack.py +++ b/crack.py @@ -4,9 +4,9 @@ for i in range(64): print(0) - print("HACK_EVERYTHING") # TODO: find how to hack everything + print("{self.ask_secret.__globals__[SECRET][%d]}>9" % (i,)) input() input() - password += extract_password_char(input()) # TODO: find how to extract a password character + password += input()[10] print(password) input() From 28bedd44baf322f4701932c6e0c0a5553e2e1bf8 Mon Sep 17 00:00:00 2001 From: ophir Date: Sun, 19 Jan 2020 02:34:42 +0100 Subject: [PATCH 2/2] Fix solution --- crack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crack.py b/crack.py index 86ea276..db3c24a 100644 --- a/crack.py +++ b/crack.py @@ -5,7 +5,7 @@ while not "You found the secret" in answer: print(0) - print("{self.ask_secret.__globals__[SECRET][%d]}>9" % (i,)) + print("{self.ask_secret.__globals__[SECRET][%d]}>9" % len(password)) input() input() password += input()[10]