From 333fee792923c1732971d1490c2677e7c75fbdb4 Mon Sep 17 00:00:00 2001 From: Yan Date: Sat, 25 Jan 2025 19:45:40 -0700 Subject: [PATCH] fix template --- web-security/cmdi-touch-blind/_0/server | 11 +++++------ web-security/cmdi-touch-blind/_1/server | 11 +++++------ web-security/cmdi-touch-blind/_10/server | 11 +++++------ web-security/cmdi-touch-blind/_11/server | 11 +++++------ web-security/cmdi-touch-blind/_12/server | 11 +++++------ web-security/cmdi-touch-blind/_13/server | 11 +++++------ web-security/cmdi-touch-blind/_14/server | 11 +++++------ web-security/cmdi-touch-blind/_15/server | 11 +++++------ web-security/cmdi-touch-blind/_2/server | 11 +++++------ web-security/cmdi-touch-blind/_3/server | 11 +++++------ web-security/cmdi-touch-blind/_4/server | 11 +++++------ web-security/cmdi-touch-blind/_5/server | 11 +++++------ web-security/cmdi-touch-blind/_6/server | 7 +++---- web-security/cmdi-touch-blind/_7/server | 11 +++++------ web-security/cmdi-touch-blind/_8/server | 11 +++++------ web-security/cmdi-touch-blind/_9/server | 11 +++++------ 16 files changed, 78 insertions(+), 94 deletions(-) diff --git a/web-security/cmdi-touch-blind/_0/server b/web-security/cmdi-touch-blind/_0/server index 60903fd..7475b5a 100755 --- a/web-security/cmdi-touch-blind/_0/server +++ b/web-security/cmdi-touch-blind/_0/server @@ -7,9 +7,9 @@ import os app = flask.Flask(__name__) -@app.route("/task", methods=["GET"]) +@app.route("/initiative", methods=["GET"]) def challenge(): - arg = flask.request.args.get("full-path", "/challenge/PWN") + arg = flask.request.args.get("file", "/challenge/PWN") command = f"touch {arg}" print(f"DEBUG: {command=}") @@ -24,11 +24,10 @@ def challenge(): return f""" Welcome to the touch service! Please choose a file to touch: -
+

- Output of {command}:
-
{result}
- + Ran {command}!
+ """ diff --git a/web-security/cmdi-touch-blind/_1/server b/web-security/cmdi-touch-blind/_1/server index bc66150..6bbd06d 100755 --- a/web-security/cmdi-touch-blind/_1/server +++ b/web-security/cmdi-touch-blind/_1/server @@ -7,9 +7,9 @@ import os app = flask.Flask(__name__) -@app.route("/initiative", methods=["GET"]) +@app.route("/mission", methods=["GET"]) def challenge(): - arg = flask.request.args.get("file-dest", "/challenge/PWN") + arg = flask.request.args.get("file-or-directory", "/challenge/PWN") command = f"touch {arg}" print(f"DEBUG: {command=}") @@ -24,11 +24,10 @@ def challenge(): return f""" Welcome to the touch service! Please choose a file to touch: -
+

- Output of {command}:
-
{result}
- + Ran {command}!
+ """ diff --git a/web-security/cmdi-touch-blind/_10/server b/web-security/cmdi-touch-blind/_10/server index 72bdbd0..8f6e0c9 100755 --- a/web-security/cmdi-touch-blind/_10/server +++ b/web-security/cmdi-touch-blind/_10/server @@ -7,9 +7,9 @@ import os app = flask.Flask(__name__) -@app.route("/exercise", methods=["GET"]) +@app.route("/activity", methods=["GET"]) def challenge(): - arg = flask.request.args.get("file-pathname", "/challenge/PWN") + arg = flask.request.args.get("file-location", "/challenge/PWN") command = f"touch {arg}" print(f"DEBUG: {command=}") @@ -24,11 +24,10 @@ def challenge(): return f""" Welcome to the touch service! Please choose a file to touch: -
+

- Output of {command}:
-
{result}
- + Ran {command}!
+ """ diff --git a/web-security/cmdi-touch-blind/_11/server b/web-security/cmdi-touch-blind/_11/server index a6f6c28..6382888 100755 --- a/web-security/cmdi-touch-blind/_11/server +++ b/web-security/cmdi-touch-blind/_11/server @@ -7,9 +7,9 @@ import os app = flask.Flask(__name__) -@app.route("/competition", methods=["GET"]) +@app.route("/task", methods=["GET"]) def challenge(): - arg = flask.request.args.get("file-name", "/challenge/PWN") + arg = flask.request.args.get("file-ref", "/challenge/PWN") command = f"touch {arg}" print(f"DEBUG: {command=}") @@ -24,11 +24,10 @@ def challenge(): return f""" Welcome to the touch service! Please choose a file to touch: -
+

- Output of {command}:
-
{result}
- + Ran {command}!
+ """ diff --git a/web-security/cmdi-touch-blind/_12/server b/web-security/cmdi-touch-blind/_12/server index 3cb1aa2..58cfbc8 100755 --- a/web-security/cmdi-touch-blind/_12/server +++ b/web-security/cmdi-touch-blind/_12/server @@ -7,9 +7,9 @@ import os app = flask.Flask(__name__) -@app.route("/goal", methods=["GET"]) +@app.route("/challenge", methods=["GET"]) def challenge(): - arg = flask.request.args.get("file-or-directory", "/challenge/PWN") + arg = flask.request.args.get("filepath", "/challenge/PWN") command = f"touch {arg}" print(f"DEBUG: {command=}") @@ -24,11 +24,10 @@ def challenge(): return f""" Welcome to the touch service! Please choose a file to touch: -
+

- Output of {command}:
-
{result}
- + Ran {command}!
+ """ diff --git a/web-security/cmdi-touch-blind/_13/server b/web-security/cmdi-touch-blind/_13/server index 554bbcb..b566f75 100755 --- a/web-security/cmdi-touch-blind/_13/server +++ b/web-security/cmdi-touch-blind/_13/server @@ -7,9 +7,9 @@ import os app = flask.Flask(__name__) -@app.route("/quest", methods=["GET"]) +@app.route("/challenge", methods=["GET"]) def challenge(): - arg = flask.request.args.get("file-name", "/challenge/PWN") + arg = flask.request.args.get("file-location", "/challenge/PWN") command = f"touch {arg}" print(f"DEBUG: {command=}") @@ -24,11 +24,10 @@ def challenge(): return f""" Welcome to the touch service! Please choose a file to touch: -
+

- Output of {command}:
-
{result}
- + Ran {command}!
+ """ diff --git a/web-security/cmdi-touch-blind/_14/server b/web-security/cmdi-touch-blind/_14/server index 39b7114..67ccf70 100755 --- a/web-security/cmdi-touch-blind/_14/server +++ b/web-security/cmdi-touch-blind/_14/server @@ -7,9 +7,9 @@ import os app = flask.Flask(__name__) -@app.route("/task", methods=["GET"]) +@app.route("/challenge", methods=["GET"]) def challenge(): - arg = flask.request.args.get("file-or-dir", "/challenge/PWN") + arg = flask.request.args.get("file-path", "/challenge/PWN") command = f"touch {arg}" print(f"DEBUG: {command=}") @@ -24,11 +24,10 @@ def challenge(): return f""" Welcome to the touch service! Please choose a file to touch: -
+

- Output of {command}:
-
{result}
- + Ran {command}!
+ """ diff --git a/web-security/cmdi-touch-blind/_15/server b/web-security/cmdi-touch-blind/_15/server index 04f05ad..d5ee76e 100755 --- a/web-security/cmdi-touch-blind/_15/server +++ b/web-security/cmdi-touch-blind/_15/server @@ -7,9 +7,9 @@ import os app = flask.Flask(__name__) -@app.route("/mission", methods=["GET"]) +@app.route("/assignment", methods=["GET"]) def challenge(): - arg = flask.request.args.get("file-dest", "/challenge/PWN") + arg = flask.request.args.get("path", "/challenge/PWN") command = f"touch {arg}" print(f"DEBUG: {command=}") @@ -24,11 +24,10 @@ def challenge(): return f""" Welcome to the touch service! Please choose a file to touch: -
+

- Output of {command}:
-
{result}
- + Ran {command}!
+ """ diff --git a/web-security/cmdi-touch-blind/_2/server b/web-security/cmdi-touch-blind/_2/server index 29b7e0d..829ddd5 100755 --- a/web-security/cmdi-touch-blind/_2/server +++ b/web-security/cmdi-touch-blind/_2/server @@ -7,9 +7,9 @@ import os app = flask.Flask(__name__) -@app.route("/level", methods=["GET"]) +@app.route("/puzzle", methods=["GET"]) def challenge(): - arg = flask.request.args.get("filename", "/challenge/PWN") + arg = flask.request.args.get("full-path", "/challenge/PWN") command = f"touch {arg}" print(f"DEBUG: {command=}") @@ -24,11 +24,10 @@ def challenge(): return f""" Welcome to the touch service! Please choose a file to touch: -
+

- Output of {command}:
-
{result}
- + Ran {command}!
+ """ diff --git a/web-security/cmdi-touch-blind/_3/server b/web-security/cmdi-touch-blind/_3/server index c91e2b7..79e1534 100755 --- a/web-security/cmdi-touch-blind/_3/server +++ b/web-security/cmdi-touch-blind/_3/server @@ -7,9 +7,9 @@ import os app = flask.Flask(__name__) -@app.route("/test", methods=["GET"]) +@app.route("/step", methods=["GET"]) def challenge(): - arg = flask.request.args.get("file-or-dir", "/challenge/PWN") + arg = flask.request.args.get("output-file", "/challenge/PWN") command = f"touch {arg}" print(f"DEBUG: {command=}") @@ -24,11 +24,10 @@ def challenge(): return f""" Welcome to the touch service! Please choose a file to touch: -
+

- Output of {command}:
-
{result}
- + Ran {command}!
+ """ diff --git a/web-security/cmdi-touch-blind/_4/server b/web-security/cmdi-touch-blind/_4/server index 03b046a..ea1b427 100755 --- a/web-security/cmdi-touch-blind/_4/server +++ b/web-security/cmdi-touch-blind/_4/server @@ -7,9 +7,9 @@ import os app = flask.Flask(__name__) -@app.route("/task", methods=["GET"]) +@app.route("/resource", methods=["GET"]) def challenge(): - arg = flask.request.args.get("output-file", "/challenge/PWN") + arg = flask.request.args.get("file-ref", "/challenge/PWN") command = f"touch {arg}" print(f"DEBUG: {command=}") @@ -24,11 +24,10 @@ def challenge(): return f""" Welcome to the touch service! Please choose a file to touch: -
+

- Output of {command}:
-
{result}
- + Ran {command}!
+ """ diff --git a/web-security/cmdi-touch-blind/_5/server b/web-security/cmdi-touch-blind/_5/server index 1c65589..0fdea68 100755 --- a/web-security/cmdi-touch-blind/_5/server +++ b/web-security/cmdi-touch-blind/_5/server @@ -7,9 +7,9 @@ import os app = flask.Flask(__name__) -@app.route("/resource", methods=["GET"]) +@app.route("/initiative", methods=["GET"]) def challenge(): - arg = flask.request.args.get("file-or-directory", "/challenge/PWN") + arg = flask.request.args.get("full-path", "/challenge/PWN") command = f"touch {arg}" print(f"DEBUG: {command=}") @@ -24,11 +24,10 @@ def challenge(): return f""" Welcome to the touch service! Please choose a file to touch: -
+

- Output of {command}:
-
{result}
- + Ran {command}!
+ """ diff --git a/web-security/cmdi-touch-blind/_6/server b/web-security/cmdi-touch-blind/_6/server index 40701e6..cfc69cd 100755 --- a/web-security/cmdi-touch-blind/_6/server +++ b/web-security/cmdi-touch-blind/_6/server @@ -7,7 +7,7 @@ import os app = flask.Flask(__name__) -@app.route("/quest", methods=["GET"]) +@app.route("/adventure", methods=["GET"]) def challenge(): arg = flask.request.args.get("file-dest", "/challenge/PWN") command = f"touch {arg}" @@ -26,9 +26,8 @@ def challenge(): Welcome to the touch service! Please choose a file to touch:

- Output of {command}:
-
{result}
- + Ran {command}!
+ """ diff --git a/web-security/cmdi-touch-blind/_7/server b/web-security/cmdi-touch-blind/_7/server index d48419c..257678a 100755 --- a/web-security/cmdi-touch-blind/_7/server +++ b/web-security/cmdi-touch-blind/_7/server @@ -7,9 +7,9 @@ import os app = flask.Flask(__name__) -@app.route("/dare", methods=["GET"]) +@app.route("/level", methods=["GET"]) def challenge(): - arg = flask.request.args.get("filename", "/challenge/PWN") + arg = flask.request.args.get("filepath", "/challenge/PWN") command = f"touch {arg}" print(f"DEBUG: {command=}") @@ -24,11 +24,10 @@ def challenge(): return f""" Welcome to the touch service! Please choose a file to touch: -
+

- Output of {command}:
-
{result}
- + Ran {command}!
+ """ diff --git a/web-security/cmdi-touch-blind/_8/server b/web-security/cmdi-touch-blind/_8/server index 784ce26..5128a8b 100755 --- a/web-security/cmdi-touch-blind/_8/server +++ b/web-security/cmdi-touch-blind/_8/server @@ -7,9 +7,9 @@ import os app = flask.Flask(__name__) -@app.route("/puzzle", methods=["GET"]) +@app.route("/goal", methods=["GET"]) def challenge(): - arg = flask.request.args.get("the-file", "/challenge/PWN") + arg = flask.request.args.get("file-target", "/challenge/PWN") command = f"touch {arg}" print(f"DEBUG: {command=}") @@ -24,11 +24,10 @@ def challenge(): return f""" Welcome to the touch service! Please choose a file to touch: -
+

- Output of {command}:
-
{result}
- + Ran {command}!
+ """ diff --git a/web-security/cmdi-touch-blind/_9/server b/web-security/cmdi-touch-blind/_9/server index 41aeae0..6afff25 100755 --- a/web-security/cmdi-touch-blind/_9/server +++ b/web-security/cmdi-touch-blind/_9/server @@ -7,9 +7,9 @@ import os app = flask.Flask(__name__) -@app.route("/goal", methods=["GET"]) +@app.route("/scenario", methods=["GET"]) def challenge(): - arg = flask.request.args.get("filepath", "/challenge/PWN") + arg = flask.request.args.get("path", "/challenge/PWN") command = f"touch {arg}" print(f"DEBUG: {command=}") @@ -24,11 +24,10 @@ def challenge(): return f""" Welcome to the touch service! Please choose a file to touch: -
+

- Output of {command}:
-
{result}
- + Ran {command}!
+ """