|
solusvm的授权部分在system下面的clean.php里面。
这个文件包括两个函数,一个LicenseDecode,一个LicenseDecodePart。
那么自然,逆向他的算法即可。
因为怕dmca,我就不放解密了~
我放加密233333
[ol]_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 复制代码
授权访问的位置是 /clients/modules/servers/licensing/slbs_verify_license.php
我给一个slbs_verify_license.php的范例:
[ol] '', "hash2" => '', "status" => 'Active', "productid" => 20, "checkDate" => date("Y-M-D"), "companyname" => "NagakaTech", "email" => "admin@loli.ren", "configoptions" => "Slaves=100|Mini Slaves=100|Micro Slaves=100" ); $data = LicenseEncode($returnarray); echo($data);}else{ echo("No input");}[/ol]复制代码
使用的版本是1.20.03,只测试了前台网页的license正常~
附注:
solusvm服务器(需要host掉)
http://www.soluslabs.com
licensing1.soluslabs.net
licensing5.soluslabs.net
链接:
https://www.myitmx.com/470.html
https://www.loli.ren/2018/01/27/%E8%AE%B0%E4%B8%80%E6%AC%A1solusvm%E7%9A%84%E7%A0%B4%E8%A7%A3
|
|