PHP manual injection Detection

Source: Internet
Author: User

Small food articles, N not to spray

--------------------------------------

Original tutorial
BY: maya663

--------------------------------------

PHP manual injection Basics

I want to learn and read this article.

---------------------------

Recently, I met a PHP site.

Http://www.bkjia.com (only to replace the target site, not this site)

Http://xxx.com/index.php? Id = 112

This injection point

Judgment basis: and 1 = 1
And 1 = 2, you know, it's basically the same as ASP.

Start manually:

Direct
Order
The statement is used to sort the result set.

The final result is 1.

Several Functions

User () return to the current User

Database () returns the current Database

Version ()
Returns the Mysql version (this is important)

Mysql version> = 4.0 supports Union queries
Mysql> = 5.0 supports information_schema Query

The following table name and field name have been obtained for basic information:

Many tutorials are written with the table name

Admin
Administrator
Manager
User
Users

However, the success count is very small. Why wait a while to read a Mysql database?

This is the table name of the Mysql database.

If you guess, you can't guess it if you're exhausted.

The principle is as follows:

Next we will mention this database.

This is the mysql version5.0Automatically installed Database

Information_schema. Metadata is data about data, such as database name or table name, column data type, or access permission.

My understanding:In useWhen creating a database in the mysql database, the newly created database tables and fields are automatically recorded in the information_schema database.

Table

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.