this version only test 2026.1 pass
This commit is contained in:
Generated
+10
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="GoImports">
|
||||||
|
<option name="excludedPackages">
|
||||||
|
<array>
|
||||||
|
<option value="golang.org/x/net/context" />
|
||||||
|
</array>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<profile version="1.0">
|
||||||
|
<option name="myName" value="Project Default" />
|
||||||
|
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
||||||
|
<option name="ignoredPackages">
|
||||||
|
<list />
|
||||||
|
</option>
|
||||||
|
</inspection_tool>
|
||||||
|
</profile>
|
||||||
|
</component>
|
||||||
Generated
+6
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>org.example</groupId>
|
<groupId>org.example</groupId>
|
||||||
<artifactId>jetbrains_cracker</artifactId>
|
<artifactId>jetbrains_cracker</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.1-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ public class MWindow extends Frame {
|
|||||||
private Thread searchThread;
|
private Thread searchThread;
|
||||||
public static boolean stop = false;
|
public static boolean stop = false;
|
||||||
private static ArrayList<String> file_paths = new ArrayList();
|
private static ArrayList<String> file_paths = new ArrayList();
|
||||||
|
private static final String package_name = "intellij.platform.ide.impl.jar";
|
||||||
|
|
||||||
public static String findAppJar(File dir) {
|
public static String findAppJar(File dir) {
|
||||||
File[] files = dir.listFiles();
|
File[] files = dir.listFiles();
|
||||||
@@ -28,7 +29,7 @@ public class MWindow extends Frame {
|
|||||||
if (libFiles != null) {
|
if (libFiles != null) {
|
||||||
for (File libFile : libFiles) {
|
for (File libFile : libFiles) {
|
||||||
if (stop) break;
|
if (stop) break;
|
||||||
if (libFile.isFile() && libFile.getName().equalsIgnoreCase("app.jar")) {
|
if (libFile.isFile() && libFile.getName().equalsIgnoreCase(package_name)) {
|
||||||
file_paths.add(file.getAbsolutePath());
|
file_paths.add(file.getAbsolutePath());
|
||||||
break lab1;
|
break lab1;
|
||||||
}
|
}
|
||||||
@@ -57,7 +58,7 @@ public class MWindow extends Frame {
|
|||||||
|
|
||||||
public MWindow() {
|
public MWindow() {
|
||||||
// 设置窗口标题
|
// 设置窗口标题
|
||||||
super("JetBrains License Cracker V1.0");
|
super("JetBrains License Cracker V1.1");
|
||||||
|
|
||||||
// 设置窗口布局
|
// 设置窗口布局
|
||||||
setLayout(new BorderLayout());
|
setLayout(new BorderLayout());
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import java.util.Enumeration;
|
|||||||
import java.util.jar.*;
|
import java.util.jar.*;
|
||||||
|
|
||||||
public class ModifyDialogWrapperPeerImpl {
|
public class ModifyDialogWrapperPeerImpl {
|
||||||
public String filename = "";
|
public String filename = "intellij.platform.ide.impl.jar";
|
||||||
public String backupPath = "";
|
public String backupPath = "";
|
||||||
public String middlePath = "";
|
public String middlePath = "";
|
||||||
public String bkPath = "";
|
public String bkPath = "";
|
||||||
@@ -21,6 +21,7 @@ public class ModifyDialogWrapperPeerImpl {
|
|||||||
private URLClassLoader urlClassLoader;
|
private URLClassLoader urlClassLoader;
|
||||||
private ClassPool pool = null;
|
private ClassPool pool = null;
|
||||||
private LoaderClassPath jarClassPath = null;
|
private LoaderClassPath jarClassPath = null;
|
||||||
|
private static final String package_name = "intellij.platform.ide.impl.jar";
|
||||||
|
|
||||||
public boolean deleteDirectory(String dirPath) {
|
public boolean deleteDirectory(String dirPath) {
|
||||||
File directory = new File(dirPath);
|
File directory = new File(dirPath);
|
||||||
@@ -71,15 +72,7 @@ public class ModifyDialogWrapperPeerImpl {
|
|||||||
}
|
}
|
||||||
backupPath = dirPath + "\\" + "JCZ-backup";
|
backupPath = dirPath + "\\" + "JCZ-backup";
|
||||||
middlePath = dirPath + "\\" + "JCZ-middle";
|
middlePath = dirPath + "\\" + "JCZ-middle";
|
||||||
if (new File(dirPath + "\\" + "app-client.jar").exists()) {
|
return dirPath + "\\" + package_name;
|
||||||
filename = "app-client.jar";
|
|
||||||
logList.add("[#] app-client.jar found, using it.");
|
|
||||||
return dirPath + "\\" + "app-client.jar";
|
|
||||||
} else {
|
|
||||||
filename = "app.jar";
|
|
||||||
logList.add("[#] app.jar found, using it.");
|
|
||||||
return dirPath + "\\" + "app.jar";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void crack_it(String dirPath, MyList log_list) throws Exception {
|
public void crack_it(String dirPath, MyList log_list) throws Exception {
|
||||||
@@ -115,7 +108,7 @@ public class ModifyDialogWrapperPeerImpl {
|
|||||||
}
|
}
|
||||||
setTitleMethod.insertBefore("{ System.out.println(\"即将打开窗口-->\"+$1);" +
|
setTitleMethod.insertBefore("{ System.out.println(\"即将打开窗口-->\"+$1);" +
|
||||||
"boolean isLSW = false;" +
|
"boolean isLSW = false;" +
|
||||||
"try {\n"+
|
"try {\n" +
|
||||||
" if($1.indexOf(\"许可证\")>-1) {isLSW=true; this.dispose();}\n" +
|
" if($1.indexOf(\"许可证\")>-1) {isLSW=true; this.dispose();}\n" +
|
||||||
" if($1.indexOf(\"Licenses\")>-1) {isLSW=true; this.dispose();}\n" +
|
" if($1.indexOf(\"Licenses\")>-1) {isLSW=true; this.dispose();}\n" +
|
||||||
" if($1.indexOf(\"管理订阅\")>-1) {isLSW=true; this.dispose();}\n" +
|
" if($1.indexOf(\"管理订阅\")>-1) {isLSW=true; this.dispose();}\n" +
|
||||||
|
|||||||
Reference in New Issue
Block a user