資源簡介
本破解在SFS2X 2.13.5版本上測試,理論上適用于SFS2X v2.13的任意版本
詳情請查看 https://blog.csdn.net/BlueEffie/article/details/88851217

代碼片段和文件信息
import?com.smartfoxserver.v2.entities.data.SFSobject;
import?com.smartfoxserver.v2.protocol.binary.DefaultPacketCompressor;
import?java.io.*;
import?java.util.Random;
public?class?Main?{
????public?static?void?main(String[]?args)?{
????????try?{
????????????SaveLicense();
????????????OpenLicense();
????????}?catch?(Exception?e)?{
????????????e.printStackTrace();
????????}
????}
????public?static?void?SaveLicense()?throws?IllegalArgumentException?SecurityException?IOException?{
????????SFSobject?license?=?new?SFSobject();
????????license.putUtfString(“customer“?“BlueEffie“);//?授權人,為空則為共享版,否則個人版
????????license.putUtfString(“bind“?“127.0.0.1“);//?限制IP?,也就是服務器的公網IP!!如果寫內網IP則只能在內網上訪問。
????????license.putInt(“users“?-1);//?連接數上限,-1為無限數量
????????license.putLong(“expire“?0);//?版權到期時間,0為無限制
????????license.putBool(“private“?false);//?私有?
????????byte[]?objectBytes?=?license.toBinary();
????????try?{
????????????objectBytes?=?new?DefaultPacketCompressor().compress(objectBytes);
????????}?catch?(Exception?e)?{
????????????e.printStackTrace();
????????}
????????byte[]?licenseData?=?Encrypt(objectBytes);
????????new?FileOutputStream(“C:\\license.2x“).write(licenseData);?//設置保存的路徑
????}
????public?static?void?OpenLicense()?throws?IllegalArgumentException?SecurityException?IOException?{
????????FileInputStream?fis?=?new?FileInputStream(“C:\\license.2x“);
????????byte[]?licenseData?=?Decrypt(readStream(fis));
????????try?{
????????????byte[]?objectBytes?=?new?DefaultPacketCompressor().uncompress(licenseData);
????????????SFSobject?license?=?SFSobject.newFromBinaryData(objectBytes);
????????????System.out.println(“customer=>“?+?license.getUtfString(“customer“));
????????????System.out.println(“bind=>“?+?license.getUtfString(“bind“));
????????????System.out.println(“users=>“?+?license.getInt(“users“));
????????????System.out.println(“expire=>“?+?license.getLong(“expire“));
????????????System.out.println(“private=>“?+?license.getBool(“private“));
????????}?catch?(Exception?e)?{
????????????e.printStackTrace();
????????}
????}
????private?static?byte[]?Encrypt(byte[]?fileData)?{
????????Random?random?=?new?Random();
????????byte[]?encryptData?=?new?byte[fileData.length?+?4];
????????for?(int?i?=?0;?i?4;?i++)?{
????????????encryptData[i]?=?(byte)?random.nextInt(255);
????????}
????????for?(int?i?=?0;?i?????????????encryptData[i?+?4]?=?(byte)?(fileData[i]?^?encryptData[2]);
????????}
????????return?encryptData;
????}
????private?static?byte[]?Decrypt(byte[]?fileData)?{
????????byte[]?decryptData?=?new?byte[fileData.length?-?4];
????????for?(int?i?=?0;?i?????????????decryptData[i]?=?(byte)?(fileData[i?+?4]?^?fileData[2]);
????????}
????????return?decryptData;
????}
????private?static?byte[]?readStream(InputStream?source)?throws?IllegalArgumentException?SecurityException?IOException?{
????????ByteArrayOut
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????84??2019-03-27?17:18??SmartFoxServer_2X?v2.13.5_Crack\SFS2X\config\license.2x
?????文件??????38447??2019-03-21?19:37??SmartFoxServer_2X?v2.13.5_Crack\SFS2X\lib\sfs2x-lib.jar
?????文件??????54563??2019-03-18?18:34??SmartFoxServer_2X?v2.13.5_Crack\SFS2X\www\root\admin\modules\LicenseManager.swf
?????文件????????299??2019-03-27?17:31??SmartFoxServer_2X?v2.13.5_Crack\破解說明.txt
?????文件???????3599??2019-03-27?17:17??SmartFoxServer_2X?v2.13.5_Crack\證書生成代碼\Main.java
?????目錄??????????0??2019-03-27?17:11??SmartFoxServer_2X?v2.13.5_Crack\SFS2X\www\root\admin\modules
?????目錄??????????0??2019-03-27?17:11??SmartFoxServer_2X?v2.13.5_Crack\SFS2X\www\root\admin
?????目錄??????????0??2019-03-27?17:10??SmartFoxServer_2X?v2.13.5_Crack\SFS2X\www\root
?????目錄??????????0??2019-03-27?17:10??SmartFoxServer_2X?v2.13.5_Crack\SFS2X\config
?????目錄??????????0??2019-03-27?17:09??SmartFoxServer_2X?v2.13.5_Crack\SFS2X\lib
?????目錄??????????0??2019-03-27?17:10??SmartFoxServer_2X?v2.13.5_Crack\SFS2X\www
?????目錄??????????0??2019-03-27?17:10??SmartFoxServer_2X?v2.13.5_Crack\SFS2X
?????目錄??????????0??2019-03-27?17:27??SmartFoxServer_2X?v2.13.5_Crack\證書生成代碼
?????目錄??????????0??2019-03-27?17:26??SmartFoxServer_2X?v2.13.5_Crack
-----------?---------??----------?-----??----
????????????????96992????????????????????14
- 上一篇:市場營銷學(第三版PPT 教學課件
- 下一篇:區間復合平均價計算方法
評論
共有 條評論