From 467f21953057444f1bdd96ed25a41fb1b7c14648 Mon Sep 17 00:00:00 2001 From: James Robson Date: Fri, 19 Feb 2021 14:07:05 +0000 Subject: [PATCH 1/3] Try moving code --- scan-test/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scan-test/main.py b/scan-test/main.py index 2a02a37..f6c7f72 100644 --- a/scan-test/main.py +++ b/scan-test/main.py @@ -6,6 +6,7 @@ def problem(): j = "second" + z = "new line" x = 40 y = exec("x + 2") print(i, j, y) From 1e4314852b3a71b5c9d978a587c57b51eeebb1b4 Mon Sep 17 00:00:00 2001 From: James Robson Date: Fri, 19 Feb 2021 14:11:42 +0000 Subject: [PATCH 2/3] Use new variable --- scan-test/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan-test/main.py b/scan-test/main.py index f6c7f72..b78a91c 100644 --- a/scan-test/main.py +++ b/scan-test/main.py @@ -9,7 +9,7 @@ def problem(): z = "new line" x = 40 y = exec("x + 2") - print(i, j, y) + print(i, j, y, z) if looks_like_a_pw == "ahcohphohbaezox3Xeto": print("passwd accepted") From 751ea02491676d8e4f9b1669741e3729f3a050a8 Mon Sep 17 00:00:00 2001 From: James Robson Date: Fri, 19 Feb 2021 14:23:41 +0000 Subject: [PATCH 3/3] Try password again --- scan-test/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scan-test/main.py b/scan-test/main.py index b78a91c..eaa99a5 100644 --- a/scan-test/main.py +++ b/scan-test/main.py @@ -1,3 +1,5 @@ +import sys + i = "hi" i = "multiple definition" j = "first" @@ -10,7 +12,7 @@ def problem(): x = 40 y = exec("x + 2") print(i, j, y, z) - if looks_like_a_pw == "ahcohphohbaezox3Xeto": + if sys.argv[1] == looks_like_a_passwdw: print("passwd accepted")