BurpLoaderKeygenCnF icon indicating copy to clipboard operation
BurpLoaderKeygenCnF copied to clipboard

【BUG】直接双击打开BurpLoaderKeygenCnF.jar显示找不到

Open Z-fly opened this issue 3 years ago • 4 comments

image 我看了下user.dir,推测工作路径是在临时目录下的 image image

Z-fly avatar Mar 17 '22 05:03 Z-fly

建议结合#4

Z-fly avatar Mar 17 '22 05:03 Z-fly

image --add-opens=java.desktop/javax.swing=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED

Z-fly avatar Mar 17 '22 05:03 Z-fly

Java 17 以上需要加参数的功能已经实现了,但是无法读取运行目录这个确实比较迷惑,我会尝试修复。

WankkoRee avatar Oct 06 '22 15:10 WankkoRee

可以这样获取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");

h3110w0r1d-y avatar Jan 29 '23 01:01 h3110w0r1d-y