BurpLoaderKeygenCnF
BurpLoaderKeygenCnF copied to clipboard
【BUG】直接双击打开BurpLoaderKeygenCnF.jar显示找不到
我看了下user.dir,推测工作路径是在临时目录下的

建议结合#4
--add-opens=java.desktop/javax.swing=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED
Java 17 以上需要加参数的功能已经实现了,但是无法读取运行目录这个确实比较迷惑,我会尝试修复。
可以这样获取Loader路径
f = new File(KeygenForm.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());
if (f.isDirectory()) {
current_dir = f.getPath();
} else {
current_dir = f.getParentFile().toString();
}
DirectoryStream<Path> dirStream = Files.newDirectoryStream(Paths.get(current_dir), "burpsuite_*.jar");