added lfi test

This commit is contained in:
Saifeddine ALOUI 2024-02-17 02:53:57 +01:00
parent 1320331fa8
commit e85238b31f
2 changed files with 13 additions and 1 deletions

@ -1 +1 @@
Subproject commit 8c40b159c546c0d9a2e09b1659207b3f78043115
Subproject commit 7128493d95a0c3b955ce36662228b74d7a8d8c2b

View File

@ -0,0 +1,12 @@
import requests
# URL of your API endpoint
url = 'http://localhost:9600/user_infos/'
# Attempt to access etc/passwd
payload = {'path': '../../../../etc/passwd'}
response = requests.get(url, params=payload)
print(f'Response status: {response.status_code}')
print(f'Response body: {response.text}')