this version only test 2026.1 pass

This commit is contained in:
2026-04-02 10:59:26 +08:00
parent c6120c9c01
commit be65d22009
6 changed files with 34 additions and 14 deletions
+10
View File
@@ -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
View File
@@ -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
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>org.example</groupId>
<artifactId>jetbrains_cracker</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.1-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
+3 -2
View File
@@ -15,6 +15,7 @@ public class MWindow extends Frame {
private Thread searchThread;
public static boolean stop = false;
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) {
File[] files = dir.listFiles();
@@ -28,7 +29,7 @@ public class MWindow extends Frame {
if (libFiles != null) {
for (File libFile : libFiles) {
if (stop) break;
if (libFile.isFile() && libFile.getName().equalsIgnoreCase("app.jar")) {
if (libFile.isFile() && libFile.getName().equalsIgnoreCase(package_name)) {
file_paths.add(file.getAbsolutePath());
break lab1;
}
@@ -57,7 +58,7 @@ public class MWindow extends Frame {
public MWindow() {
// 设置窗口标题
super("JetBrains License Cracker V1.0");
super("JetBrains License Cracker V1.1");
// 设置窗口布局
setLayout(new BorderLayout());
@@ -12,7 +12,7 @@ import java.util.Enumeration;
import java.util.jar.*;
public class ModifyDialogWrapperPeerImpl {
public String filename = "";
public String filename = "intellij.platform.ide.impl.jar";
public String backupPath = "";
public String middlePath = "";
public String bkPath = "";
@@ -21,6 +21,7 @@ public class ModifyDialogWrapperPeerImpl {
private URLClassLoader urlClassLoader;
private ClassPool pool = null;
private LoaderClassPath jarClassPath = null;
private static final String package_name = "intellij.platform.ide.impl.jar";
public boolean deleteDirectory(String dirPath) {
File directory = new File(dirPath);
@@ -71,15 +72,7 @@ public class ModifyDialogWrapperPeerImpl {
}
backupPath = dirPath + "\\" + "JCZ-backup";
middlePath = dirPath + "\\" + "JCZ-middle";
if (new File(dirPath + "\\" + "app-client.jar").exists()) {
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";
}
return dirPath + "\\" + package_name;
}
public void crack_it(String dirPath, MyList log_list) throws Exception {