Handling of special characters in parameters of SQL injection-http requests

Source: Internet
Author: User
Tags sql injection

1, background: Recently learned webgoat to the SQL injection this lesson, to complete this lesson need to intercept HTTP requests, modify parameters, but in the modified parameters to add special characters to complete. Let's learn it together.

2. Title:

Roughly translate the topic: Bypass authentication using SQL injection. Use SQL injection to log in to the boss's account Neville instead of using the correct password. Verify that the Neville files can be browsed and that all functions are available. (These features include querying, creating, and deleting)

3, but how do I know Neville's password? ...... The topic says SQL injection. So let's get started.

The vast majority of ①password are stored in string form, so this is definitely a string injection. The injected form is typically test ' or ' 1 ' = ' 1 at this point, we meet the need to write special characters in the HTTP request parameters

② Find a random input box, enter the above content, and then send the request to the server, see the encoded parameters, test%27+or+%271%27%3d%271

4, access to information, found that the law is%+ASCII code. Now I use the summary as follows "Update at any time, welcome to add"

Special characters Coding
Space +
Single quotation marks %27
Equals %3d

Handling of special characters in parameters of SQL injection-http requests

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.