资源简介
本破解在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 < fileData.length; 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.length; 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 教学课件
- 下一篇:区间复合平均价计算方法
相关资源
- WinEdt-7-Build-20120321-incl-Crack.rar
- L0phtCrack.v6.0.8.0.Administrator.Edition 破解
- quartus14.1破解包
- 16.5 crack 修正 破解 方法 支持 windows
- Cadence 17.2 crack file
- WinLicense v2.1.6.0 Cracked
- STUDIO_5000_CRACK.rar
- AWR13破解安装许可
- DiskGenius v4.30_Crack 专业版 破解
- CloudBerryExplorerSetup_v4.7.2.13
- crack破解补丁
- myeclipse-2019.4 & codemix crack.rar
- Ansys192.Crack.zip
- Modelsim_win64_SE 10.5软件安装教程
- Serial to Ethernet Connector 5.0.7.376 破解版
- Hash Crack_ Password Cracking Manual v2.0
- CityEngine2016.0 Crack
- 5996166STUDIO_5000_CRACK.rar
-
jli
nk v8固件刷写工具 sam_ba2.13 - colorgate 9 productionserver crack
- colorgate 8 productionserver crack
- Altera Crack_Quartus II 6.0-15.1_Windows版破解
- SPSS19crack20100825.exe 破解中文版
- CTFcrackTools-V2.2
- Silvaco TCAD2014 破解所使用的Crack文件
- Crack.XE.RTM_Update1 by snakegao upload[new].r
- Quartus II 6.1~11.0版本软件的crack
- sequencher 4.14 crack_include
- beckoff crack 软件破解,程序破解
- CrackForest数据集
评论
共有 条评论