首页 > Web开发 > 详细

Ethical Hacking - Web Penetration Testing(8)

时间:2020-02-09 17:53:40      阅读:80      评论:0      收藏:0      [点我收藏+]

SQL INJECTION

WHAT IS SQL?

  • Most websites use a database to store data.
  • Most data stored in it(usernames, passwords ..etc.)
  • Web application reads, updates and inserts data in the database.
  • Interaction with DB done using SQL.


WHY ARE THEY SO DANGEROUS

1. They are everywhere.

2. Give access to the database –> sensitive data.

3. Can be used to read local files outside www root.

4. Can be used to log in as admin and further exploit the system.

5. Can be used to upload files.


DISCOVERING SQLi in POST

  • Try to break the page.
  • Using ‘and’, ‘order by’ or  “’”.
  • Testing text boxes and URL parameters on the form.

        http://target.com/page.php?something=something

Pre-Configure about Metasplitable2:

技术分享图片

Following is a very useful error message.

技术分享图片

So let’s modify the input on password box. We can login with a wrong password now.

技术分享图片

Bypassing Authentication.

技术分享图片

Ethical Hacking - Web Penetration Testing(8)

原文:https://www.cnblogs.com/keepmoving1113/p/12287569.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!