php.ini (php config file) in MAGIC_QUOTES_GPC

Source: Internet
Author: User

The role of MAGIC_QUOTES_GPC in 1.php.ini (php config file ) : Passing $_get,$_post,$_ whether a single quotation mark is processed when a COOKIE is requested (a single quotation mark is translated with a backslash, such as \' so that a malicious request with single quotation marks cannot be executed), and if the target is turned on when injected, then we cannot write the file to the server by injecting the point ( SQl statement does not execute successfully)

2.POST Type one sentence trojan,<?php eval ($_post[cmd)]:?> (eval () function is basically php version )

3. if The MAGIC_QUOTES_GPC is closed , it can be used directly in the load_file () "and change the physical path of the site to \

Example load_file (C:\A\B\C.php) is changed to load_file (' c:/a/b/c.php '). But if magic_quotes_gpc is open, convert the physical path of the Web site to hexadecimal and put it directly in load_file () without single quotes. This way you can also know whether the magic_quotes_gpc of the website is open.

4 After reading the configuration file, you can write a word trojan into the server: in the display bit ' <?php eval ($_post[cmd]);? > ' +into outfile+ ' website physical path root directory +/ add new Table '. (If the server is Linux , the root of the site may be the current user is not writable permission is not enough, then you may have to find an uploaded directory, other users will generally have permissions, or find other can put the picture is also possible.) )

5, with post Type a word trojan client (lanker word PHP Backdoor client ) upload the back door.

php.ini (php config file) in MAGIC_QUOTES_GPC

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.