Analysis of A webshell Method for pw

Source: Internet
Author: User

A webshell Method for pw

Data \ bbscache \ admin_record.php records background login and operations. Let's see how this file is operated:

Admin \ admincp. php:

$ Bbsrecordfile = D_P. "data/bbscache/admin_record.php ";
If (! File_exists ($ bbsrecordfile )){
Writeover ($ bbsrecordfile, "<? Php die;?> \ N ");
} // This if only indicates that if admin_record.php does not exist, generate

If we only edit admin_record.php? Php die;?> Delete this file :)

Let's take a look at our code and write it to admin_record.php.

Log on to http: // localhost/PHPWind_GBK_6.0RC/upload/admin. php in the background.
If you log on with an incorrect user, the following record is displayed:

| Admin | s | Logging Failed | 127.0.0.1 | 1191667510 |

So we can write our code through this, but here there is a filter that cannot be used <

Therefore, our backdoors should be kept as follows: <? Php die;?> Change 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.