1.离线激活
离线激活不能同步,每次关闭后打开都需要进行一次激活
(1)输入用户名和密码,账户和密码随便输。
(2)使用java代码进行离线破解
FinalShellUtil类
package Util;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.Security;
public class FinalShellUtil {
static {
Security.addProvider(new BouncyCastleProvider());
}
public static String md5(String msg) throws NoSuchAlgorithmException {
MessageDigest md = MessageDigest.getInstance("MD5");
byte[] hashBytes = md.digest(msg.getBytes(StandardCharsets.UTF_8));
StringBuilder sb = new StringBuilder();
for (byte b : hashBytes) {
sb.append(String.format("%02x", b));
}
return sb.toString();
}
public static String keccak384(String msg) throws NoSuchAlgorithmException {
MessageDigest md = MessageDigest.getInstance("Keccak-384");
byte[] hashBytes = md.digest(msg.getBytes(StandardCharsets.UTF_8));
StringBuilder sb = new StringBuilder();
for (byte b : hashBytes) {
sb.append(String.format("%02x", b));
}
return sb.toString();
}
}
finshell类
import java.security.NoSuchAlgorithmException;
import Util.FinalShellUtil;
import java.util.Scanner;
public class finshell{
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("输入机器码: ");
String code = scanner.nextLine();
scanner.close();
System.out.println("版本号 < 3.9.6 (旧版)");
try {
System.out.println("高级版: " + FinalShellUtil.md5("61305" + code + "8552").substring(8, 24));
System.out.println("专业版: " + FinalShellUtil.md5("2356" + code + "13593").substring(8, 24));
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
}
System.out.println("版本号 >= 3.9.6 (新版)");
try {
System.out.println("高级版: " + FinalShellUtil.keccak384(code + "hSf(78cvVlS5E").substring(12, 28));
System.out.println("专业版: " + FinalShellUtil.keccak384(code + "FF3Go(*Xvbb5s2").substring(12, 28));
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
}
}}
maven依赖
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>finell</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies> <dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.68</version>
</dependency>
</dependencies>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
</project>