找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 390|回复: 57

站长工具合集PHP源码安装方法

[复制链接]

3

主题

25

回帖

69

积分

注册会员

积分
69
发表于 2019-3-12 21:18:46 | 显示全部楼层 |阅读模式
本帖最后由 dd0754 于 2019-3-18 14:14 编辑


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替换回去就可以了


    =========================================================
    原帖子https://www.hostloc.com/thread-529151-1-1.html

    演示地址:https://tools.2bb.app/

    不给后台了,有的mjj没节操瞎搞



    有2种安装方法

    第一种:

    =========================================================
    1./core/config/db.config.php
    填上数据库信息




    =========================================================
    2./admin/install/finish.php

    $admin_user = escapeTrim($con, $_POST['admin_user']);
    $admin_pass = passwordHash(escapeTrim($con, $_POST['admin_pass']));
    $admin_name = escapeTrim($con, $_POST['admin_name']);
    改成
    $account               = array();
    $account['admin_user'] = 'admin@admin.com';// 登陆邮箱
    $account['admin_pass'] = 'admin';// 密码
    $account['admin_name'] = 'admin';// 用户名
    $admin_user            = escapeTrim($con, $account['admin_user']);
    $admin_pass            = passwordHash(escapeTrim($con, $account['admin_pass']));
    $admin_name            = escapeTrim($con, $account['admin_name']);




    =========================================================
    3.打开你的域名/admin/install/finish.php,安装数据库





    =========================================================

    第二种:

    =========================================================
    1./admin/install/process.php
    注释掉下面内容
    $stats = Trim(file_get_contents($licPath."?code=$data_sec&domain=$domain"));
    $stats = explode("::",$stats);

    $sucRate = Trim($stats[0]);
    $authCode = Trim($stats[1]);

    if ($sucRate == '1') {
        //Fine
    }elseif ($sucRate == '0') {
        echo 'Item purchase code not valid';
        die();
    }elseif ($sucRate == '2') {
        echo 'Already code used on another domain! Contact Support';
        die();
    }elseif ($sucRate == '') {
        echo 'Unable Connect to Server!';
        die();
    }else {
        echo 'Item purchase code not valid / banned';
        die();
    }




    =========================================================
    2./core/helpers/ddos_helper.php
    注释掉下面内容
    $sID = strrev('m'.'eti').strrev('edoc_esahcrup_');

    if(!isset(${$sID}) || ${$sID} == '')
        exit();
    elseif(strlen(${$sID}) [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替换回去就可以了
  • 本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    ×
    回复

    使用道具 举报

    3

    主题

    25

    回帖

    69

    积分

    注册会员

    积分
    69
     楼主| 发表于 2019-3-18 14:13:06 | 显示全部楼层

    2005exf 发表于 2019-3-12 22:18

    没有源文件???

    第一句话你就没看
    回复

    使用道具 举报

    814

    主题

    9942

    回帖

    2万

    积分

    论坛元老

    积分
    22410
    发表于 2019-3-12 22:27:47 | 显示全部楼层
    那么快破解出来了吗,大佬牛逼
    回复

    使用道具 举报

    2

    主题

    35

    回帖

    82

    积分

    注册会员

    积分
    82
    发表于 2019-3-12 22:18:00 | 显示全部楼层
    又是大佬 先顶再收藏
    回复

    使用道具 举报

    4

    主题

    1013

    回帖

    2066

    积分

    金牌会员

    积分
    2066
    发表于 2019-3-12 21:19:59 | 显示全部楼层
    本帖最后由 每次醒来 于 2019-3-12 23:28 编辑

    先收藏 大佬牛逼 能设置中文吗

    备份的分流源码下载   https://www.lanzous.com/i3eqbyd
    回复

    使用道具 举报

    313

    主题

    4849

    回帖

    1万

    积分

    论坛元老

    积分
    10795
    发表于 2019-3-12 21:30:44 | 显示全部楼层
    这么厉害啊!吓死我们这些小白了!
    回复

    使用道具 举报

    14

    主题

    183

    回帖

    422

    积分

    中级会员

    积分
    422
    发表于 2019-3-12 21:34:03 | 显示全部楼层
    记号
    回复

    使用道具 举报

    69

    主题

    721

    回帖

    1711

    积分

    金牌会员

    积分
    1711
    发表于 2019-3-12 21:37:45 | 显示全部楼层
    这个就非常牛xx了
    回复

    使用道具 举报

    214

    主题

    1760

    回帖

    4206

    积分

    论坛元老

    积分
    4206
    发表于 2019-3-12 21:49:43 | 显示全部楼层
    没有源文件???大佬,真厉害
    回复

    使用道具 举报

    16

    主题

    493

    回帖

    1090

    积分

    金牌会员

    积分
    1090
    发表于 2019-3-12 21:53:04 | 显示全部楼层
    NIUBI  
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Discuz! X

    GMT+8, 2025-5-9 15:52 , Processed in 0.020832 second(s), 3 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

    快速回复 返回顶部 返回列表