Skip to content

Commit

Permalink
fix template
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Jan 26, 2025
1 parent 08ac997 commit 333fee7
Show file tree
Hide file tree
Showing 16 changed files with 78 additions and 94 deletions.
11 changes: 5 additions & 6 deletions web-security/cmdi-touch-blind/_0/server
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")
Expand All @@ -24,11 +24,10 @@ def challenge():
return f"""
<html><body>
Welcome to the touch service! Please choose a file to touch:
<form><input type=text name=full-path><input type=submit value=Submit></form>
<form><input type=text name=file><input type=submit value=Submit></form>
<hr>
<b>Output of {command}:</b><br>
<pre>{result}</pre>
</body></html>
<b>Ran {command}!</b><br>
</body></html>
"""


Expand Down
11 changes: 5 additions & 6 deletions web-security/cmdi-touch-blind/_1/server
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")
Expand All @@ -24,11 +24,10 @@ def challenge():
return f"""
<html><body>
Welcome to the touch service! Please choose a file to touch:
<form><input type=text name=file-dest><input type=submit value=Submit></form>
<form><input type=text name=file-or-directory><input type=submit value=Submit></form>
<hr>
<b>Output of {command}:</b><br>
<pre>{result}</pre>
</body></html>
<b>Ran {command}!</b><br>
</body></html>
"""


Expand Down
11 changes: 5 additions & 6 deletions web-security/cmdi-touch-blind/_10/server
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")
Expand All @@ -24,11 +24,10 @@ def challenge():
return f"""
<html><body>
Welcome to the touch service! Please choose a file to touch:
<form><input type=text name=file-pathname><input type=submit value=Submit></form>
<form><input type=text name=file-location><input type=submit value=Submit></form>
<hr>
<b>Output of {command}:</b><br>
<pre>{result}</pre>
</body></html>
<b>Ran {command}!</b><br>
</body></html>
"""


Expand Down
11 changes: 5 additions & 6 deletions web-security/cmdi-touch-blind/_11/server
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")
Expand All @@ -24,11 +24,10 @@ def challenge():
return f"""
<html><body>
Welcome to the touch service! Please choose a file to touch:
<form><input type=text name=file-name><input type=submit value=Submit></form>
<form><input type=text name=file-ref><input type=submit value=Submit></form>
<hr>
<b>Output of {command}:</b><br>
<pre>{result}</pre>
</body></html>
<b>Ran {command}!</b><br>
</body></html>
"""


Expand Down
11 changes: 5 additions & 6 deletions web-security/cmdi-touch-blind/_12/server
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")
Expand All @@ -24,11 +24,10 @@ def challenge():
return f"""
<html><body>
Welcome to the touch service! Please choose a file to touch:
<form><input type=text name=file-or-directory><input type=submit value=Submit></form>
<form><input type=text name=filepath><input type=submit value=Submit></form>
<hr>
<b>Output of {command}:</b><br>
<pre>{result}</pre>
</body></html>
<b>Ran {command}!</b><br>
</body></html>
"""


Expand Down
11 changes: 5 additions & 6 deletions web-security/cmdi-touch-blind/_13/server
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")
Expand All @@ -24,11 +24,10 @@ def challenge():
return f"""
<html><body>
Welcome to the touch service! Please choose a file to touch:
<form><input type=text name=file-name><input type=submit value=Submit></form>
<form><input type=text name=file-location><input type=submit value=Submit></form>
<hr>
<b>Output of {command}:</b><br>
<pre>{result}</pre>
</body></html>
<b>Ran {command}!</b><br>
</body></html>
"""


Expand Down
11 changes: 5 additions & 6 deletions web-security/cmdi-touch-blind/_14/server
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")
Expand All @@ -24,11 +24,10 @@ def challenge():
return f"""
<html><body>
Welcome to the touch service! Please choose a file to touch:
<form><input type=text name=file-or-dir><input type=submit value=Submit></form>
<form><input type=text name=file-path><input type=submit value=Submit></form>
<hr>
<b>Output of {command}:</b><br>
<pre>{result}</pre>
</body></html>
<b>Ran {command}!</b><br>
</body></html>
"""


Expand Down
11 changes: 5 additions & 6 deletions web-security/cmdi-touch-blind/_15/server
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")
Expand All @@ -24,11 +24,10 @@ def challenge():
return f"""
<html><body>
Welcome to the touch service! Please choose a file to touch:
<form><input type=text name=file-dest><input type=submit value=Submit></form>
<form><input type=text name=path><input type=submit value=Submit></form>
<hr>
<b>Output of {command}:</b><br>
<pre>{result}</pre>
</body></html>
<b>Ran {command}!</b><br>
</body></html>
"""


Expand Down
11 changes: 5 additions & 6 deletions web-security/cmdi-touch-blind/_2/server
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")
Expand All @@ -24,11 +24,10 @@ def challenge():
return f"""
<html><body>
Welcome to the touch service! Please choose a file to touch:
<form><input type=text name=filename><input type=submit value=Submit></form>
<form><input type=text name=full-path><input type=submit value=Submit></form>
<hr>
<b>Output of {command}:</b><br>
<pre>{result}</pre>
</body></html>
<b>Ran {command}!</b><br>
</body></html>
"""


Expand Down
11 changes: 5 additions & 6 deletions web-security/cmdi-touch-blind/_3/server
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")
Expand All @@ -24,11 +24,10 @@ def challenge():
return f"""
<html><body>
Welcome to the touch service! Please choose a file to touch:
<form><input type=text name=file-or-dir><input type=submit value=Submit></form>
<form><input type=text name=output-file><input type=submit value=Submit></form>
<hr>
<b>Output of {command}:</b><br>
<pre>{result}</pre>
</body></html>
<b>Ran {command}!</b><br>
</body></html>
"""


Expand Down
11 changes: 5 additions & 6 deletions web-security/cmdi-touch-blind/_4/server
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")
Expand All @@ -24,11 +24,10 @@ def challenge():
return f"""
<html><body>
Welcome to the touch service! Please choose a file to touch:
<form><input type=text name=output-file><input type=submit value=Submit></form>
<form><input type=text name=file-ref><input type=submit value=Submit></form>
<hr>
<b>Output of {command}:</b><br>
<pre>{result}</pre>
</body></html>
<b>Ran {command}!</b><br>
</body></html>
"""


Expand Down
11 changes: 5 additions & 6 deletions web-security/cmdi-touch-blind/_5/server
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")
Expand All @@ -24,11 +24,10 @@ def challenge():
return f"""
<html><body>
Welcome to the touch service! Please choose a file to touch:
<form><input type=text name=file-or-directory><input type=submit value=Submit></form>
<form><input type=text name=full-path><input type=submit value=Submit></form>
<hr>
<b>Output of {command}:</b><br>
<pre>{result}</pre>
</body></html>
<b>Ran {command}!</b><br>
</body></html>
"""


Expand Down
7 changes: 3 additions & 4 deletions web-security/cmdi-touch-blind/_6/server
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -26,9 +26,8 @@ def challenge():
Welcome to the touch service! Please choose a file to touch:
<form><input type=text name=file-dest><input type=submit value=Submit></form>
<hr>
<b>Output of {command}:</b><br>
<pre>{result}</pre>
</body></html>
<b>Ran {command}!</b><br>
</body></html>
"""


Expand Down
11 changes: 5 additions & 6 deletions web-security/cmdi-touch-blind/_7/server
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")
Expand All @@ -24,11 +24,10 @@ def challenge():
return f"""
<html><body>
Welcome to the touch service! Please choose a file to touch:
<form><input type=text name=filename><input type=submit value=Submit></form>
<form><input type=text name=filepath><input type=submit value=Submit></form>
<hr>
<b>Output of {command}:</b><br>
<pre>{result}</pre>
</body></html>
<b>Ran {command}!</b><br>
</body></html>
"""


Expand Down
11 changes: 5 additions & 6 deletions web-security/cmdi-touch-blind/_8/server
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")
Expand All @@ -24,11 +24,10 @@ def challenge():
return f"""
<html><body>
Welcome to the touch service! Please choose a file to touch:
<form><input type=text name=the-file><input type=submit value=Submit></form>
<form><input type=text name=file-target><input type=submit value=Submit></form>
<hr>
<b>Output of {command}:</b><br>
<pre>{result}</pre>
</body></html>
<b>Ran {command}!</b><br>
</body></html>
"""


Expand Down
Loading

0 comments on commit 333fee7

Please sign in to comment.