虚拟主机搭建SolusVM伪授权服务器

SolusVM是一个很简洁、功能也相对比较强大的VPS管理面板,支持KVM、Xen和OpenVZ,不想购买授权可以自建授权服务器!自建伪授权服务器需要你的服务器或者虚拟主机支持PHP,其他无所谓,首先新建网站绑定以下域名:

www.soluslabs.net
soluslabs.net
soluslabs.com
www.soluslabs.com
licensing1.soluslabs.net
licensing2.soluslabs.net
licensing3.soluslabs.net
licensing4.soluslabs.net
licensing5.soluslabs.net
licensing6.soluslabs.net
licensing7.soluslabs.net

其次新建slbs_verify_license.phpclean.php两个文件。
slbs_verify_license.php

<?php require "clean.php"; if(isset($_POST["nodes"]) && isset($_POST["licensekey"]) && isset($_POST["domain"]) && isset($_POST["ip"]) && isset($_POST["dir"])){ $returnarray = array( "hash" => '',
    "hash2" => '',
    "status" => 'Active',
    "productid" => 22,
    "checkDate" => date("Y-M-D"),
    "companyname" => "SolusVM@Oblog.net",
    "email" => "SolusVM@Oblog.net",
        "nextduedate" => (date("Y") + 100) . "-06-04",
        "validip" => "8.8.8.8",
        "configoptions" => "Slaves=1000|Mini Slaves=1000|Micro Slaves=1000"
    );
    $data = $Crack->LicenseEncode($returnarray);
    echo($data);
    //DEBUG
    //file_put_contents("test.txt", json_encode($_POST));
}else{
    echo("No input");
}

clean.php

_s_C_OOO_o04);
        $data = $md5Hash.$resulttraw;
        $md5Hash = md5(strrev($data) . $this->_s_C_OOO_o03);
        $data = $md5Hash.strrev($data);
        $data = $this->LicenseEncodePart($data, $this->_s_C_OOO_o01);
        $data = strrev($data);
        $data = gzdeflate($data);
        $data = convert_uuencode($data);
        $data = strrev($data);
        $data = $this->LicenseEncodePart($data, $this->_s_C_OOO_o02);
        $data = strtoupper($data);
        $data = wordwrap($data, 18, "+", true);
        $data = wordwrap($data, 348, "(", true);
        $data = wordwrap($data, 80, "\n", true);
        $data = $this->_s_C_OOO_o09 . $data;
        $data = $data . $this->_s_C_OOO_o10;
        return $data;
    }

    private function LicenseEncodePart($string, $key) {
        $key = sha1($key);
        $strLen = strlen($string);
        $keyLen = strlen($key);
        $i = 0;
        while($i < $strLen) {
            $ordStr = ord(substr($string, $i, 1));
            if($j == $keyLen) {
                $j = 0;
            }
            $ordKey = ord(substr($key, $j, 1));
            $j++;
            $hash .= strrev(base_convert(dechex($ordStr + $ordKey), 16, 36));
            $i += 1;
        }
        return $hash;
    }
}

然后在网站根目录依此新建文件夹/clients/modules/servers/licensing/,把这两个文件放到licensing文件夹!至此SolusVM未授权服务器已经搭建完毕,具体的访问路径应该是http(s)://网址/clients/modules/servers/licensing/两个文件.php
最后修改SolusVM所在服务器或者VPS的Host文件,一般在/etc/hosts

你搭建虚拟主机或者服务器的IP  www.soluslabs.net
你搭建虚拟主机或者服务器的IP  soluslabs.net
你搭建虚拟主机或者服务器的IP  soluslabs.com
你搭建虚拟主机或者服务器的IP  www.soluslabs.com
你搭建虚拟主机或者服务器的IP  licensing1.soluslabs.net
你搭建虚拟主机或者服务器的IP  licensing2.soluslabs.net
你搭建虚拟主机或者服务器的IP  licensing3.soluslabs.net
你搭建虚拟主机或者服务器的IP  licensing4.soluslabs.net
你搭建虚拟主机或者服务器的IP  licensing5.soluslabs.net
你搭建虚拟主机或者服务器的IP  licensing6.soluslabs.net
你搭建虚拟主机或者服务器的IP  licensing7.soluslabs.net

授权码可以填SVMSO-RKHHQ-NRH6G-WM1XH-7VYVH-49CXG-8MX1L-GFVRQ

slbs_verify_license.php文件里的productid可以修改授权类型,可以参考以下类型

'productid'= '2' 'Trial'
'productid'= '4''SolusVM Enterprise (Slave Only)'
'productid'= '20''SolusVM Enterprise (NOC)'
'productid'= '22''SolusVM Enterprise (RS)'
'productid'= '24''SolusVM Developer License'
'productid'= '23''SolusVM Enterprise Slave Only (RS)'
                  SolusVM Enterprise (Full)'
点赞