PW a back door method to analyze _php skills

Source: Internet
Author: User
PW a way to put the back door

Data\bbscache\admin_record.php is a record of the background landing and operation, we see how to operate this file:

admin\admincp.php:

$bbsrecordfile =d_p. " Data/bbscache/admin_record.php ";
if (!file_exists ($bbsrecordfile)) {
Writeover ($bbsrecordfile, "<?php die;" >\n ");
}//this if it simply says that if there is no admin_record.php the code generates a

If we just edit admin_record.php put <?php die;? > this to delete it:)

Let's take a look at our code miscellaneous write admin_record.php

You landed in the background http://localhost/PHPWind_GBK_6.0RC/upload/admin.php
A random user login with the wrong log will have the following record:

|admin|s| Logging failed|127.0.0.1|1191667510|

Oh, so we can write our code through this, but here is the filter can not be used <

So our back door should stay like this: <?php die;? > Changed to <?php/*die;? >

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.