Home > Backend Development > PHP Tutorial > One sentence Trojan code for php eval function_PHP tutorial

One sentence Trojan code for php eval function_PHP tutorial

WBOY
Release: 2016-07-13 09:53:20
Original
1410 people have browsed it

php eval function one-sentence Trojan code

This is the source code of a common one-sentence Trojan in PHP. The Trojan is implanted through the post Trojan program. The eval() function converts characters The string is calculated according to the PHP code. The string must be valid PHP code and must end with a semicolon. If no return statement is called in the code string, NULL is returned. If there is a parsing error in the code, the eval() function returns false.

eval can be used to execute any other php code, so be careful if you find the eval function in the code, it may be a Trojan

Just this sentence can kill people, anyone can post any document, so be careful

 ?

1

1

1

2

3

4

5

6

7

8

The method of use is also very simple. Point the local submission file to the submission file, and the php code inside will be executed

 ?

1

3 4 5 6 7
8
The above is the entire content of this article, I hope you all like it. http://www.bkjia.com/PHPjc/1003822.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1003822.htmlTechArticlephp eval function one-sentence Trojan code This is the source code of a common one-sentence Trojan in PHP, which is implemented through the post Trojan program Trojan implantation, the eval() function calculates the string according to the PHP code. ...
Related labels:
source:php.cn
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