Home  >  Article  >  Backend Development  >  php代码搅混求解

php代码搅混求解

WBOY
WBOYOriginal
2016-06-13 12:54:091208browse

php代码混淆求解
由于源码写不下,发个图片

哪位老大帮帮忙,
写个专门解密这种的本地环境


------解决方案--------------------
<?php<br />
echo"<meta http-equiv='Content-Type' content='text/html' charset='UTF-8' />";<br />
if(file_exists("chen")){<br />
echo"你已经成功安装过!如果你要重新安装,请删除目录下的‘chen’文件再运行安装";<br />
exit();<br />
}<br />
$do=isset($_GET['do'])?$_GET['do']:sq;<br />
$sq=$_GET['sqm'];<br />
$da=$_GET['do'];<br />
if($da=='sq2'){<br />
file_get_contents('http://92gq.tk/shou.php');<br />
}<br />
include('system.php');<br />
$sqm=curl_chen('http://92gq.tk/sqmm.php','chen=chen');<br />
$a1=explode(',',$sqm);<br />
if($do=='sq'){<br />
echo"<form action='install.php' method='get'><br />
请输入给你的授权码:<br><input type='hidden' name='do' value='sq2'/><input type='text' name='sqm' value=''/><br/><br />
<input type='submit' value='确认授权'/>";<br />
}<br />
if($do=='sq2'){<br />
if($sq==$a1[1]){<br />
echo"授权成功,请<a href='install.php?do=".$sq."&sqm=".$sq."'>下一步</a>";<br />
}else{<br />
echo"授权失败,请询问你的授权码是否失效或错误!";<br />
}<br />
}<br />
if($do==$a1[1]){<br />
echo"<pre class="brush:php;toolbar:false">";<br />
include("shuoming.txt");<br />
echo"
";
if(function_exists(trim(curl_init)) and function_exists(trim(file_get_contents))){echo '空间服务器支持!';
echo"
支持,请下一步";
}else{echo '空间服务器不支持!';
if(function_exists(trim(curl_init))){}else{echo"
由于你的空间不支持curl不能够使用功能,请更换空间.
";}if(function_exists(trim(trim(file_get_contents)))){}else{echo"
由于你的空间关闭文件读写,不能够使用功能,请更改目录权限为777.
";}
}}elseif($do ==$a1[1].'2'){
echo"
数据库信息:


数据库地址:

数据库账号:

数据库密码:

数据库名:

管理密码:

邀请码:

系统网标:

宣传后缀:


";

}elseif($do == 'bc'){
$pdz=$_POST['dz'];
$pzh=$_POST['zh'];
$pmm=$_POST['mm'];
$pmk=$_POST['km'];
$pmb=$_POST['mb'];
$pass=$_POST['pass'];
$yq=$_POST['yq'];
$qd=$_POST['qd'];
$connfile='
include"cona.php";
$conn=mysql_connect("'.$pdz.'","'.$pzh.'","'.$pmm.'") or
die("现在系统繁忙,请稍后再试...");
mysql_select_db("'.$pmk.'",$conn);
mysql_query("set names \'utf8\'");

$b="v2.8";
date_default_timezone_set("PRC");
$date = date("Y-m-j H:i:s ");
?>
';
$ad='
$password = \''.$pass.'\';
$g = \''.$pmb.'\';
$yqm= \''.$yq.'\';
$qd= \''.$qd.'\';
$x="80";
?>
';
$fp=fopen("cona.php","w");
fwrite($fp,$ad); 
fclose($fp); 
$fp=fopen("conn.php","w");
fwrite($fp,$connfile); 
fclose($fp);
echo"文件保存成功!点击继续";
}elseif($do == 'dr'){
include('conn.php');
include('sql.php');
mysql_query($sql);
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