diff options
Diffstat (limited to 'src/main/java/gq/malwarefight/nosession/linux')
-rw-r--r-- | src/main/java/gq/malwarefight/nosession/linux/bwrap/BubblewrapBuilder.java | 2 | ||||
-rw-r--r-- | src/main/java/gq/malwarefight/nosession/linux/libc/Libc.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/gq/malwarefight/nosession/linux/bwrap/BubblewrapBuilder.java b/src/main/java/gq/malwarefight/nosession/linux/bwrap/BubblewrapBuilder.java index 34542cd..6a5b9a5 100644 --- a/src/main/java/gq/malwarefight/nosession/linux/bwrap/BubblewrapBuilder.java +++ b/src/main/java/gq/malwarefight/nosession/linux/bwrap/BubblewrapBuilder.java @@ -395,7 +395,7 @@ public class BubblewrapBuilder { finalArgs.addAll(bubblewrapArgs); finalArgs.add(command); finalArgs.addAll(programArgs); - pb.command(finalArgs).redirectOutput(new File("/home/pandaninjas/log")).redirectError(new File("/home/pandaninjas/log1")); + pb.command(finalArgs).redirectOutput(new File(System.getProperty("NOSESSION_STDOUT", System.getProperty("user.home") + "/nosession-stdout.log"))).redirectError(new File(System.getProperty("NOSESSION_STDERR", System.getProperty("user.home") + "/nosession-stderr.log"))); return pb; } } diff --git a/src/main/java/gq/malwarefight/nosession/linux/libc/Libc.java b/src/main/java/gq/malwarefight/nosession/linux/libc/Libc.java index 670f83d..3677537 100644 --- a/src/main/java/gq/malwarefight/nosession/linux/libc/Libc.java +++ b/src/main/java/gq/malwarefight/nosession/linux/libc/Libc.java @@ -16,7 +16,7 @@ public class Libc { static { try { File tempFile = Files.createTempFile("nosession_libc", ".so").toFile(); - try (InputStream is = Libc.class.getResourceAsStream("/native/" + System.getProperty("os.arch") + "/" + System.getProperty("os.name") + "/" + System.mapLibraryName("linux"))) { + try (InputStream is = Libc.class.getResourceAsStream("/native/" + System.getProperty("os.arch") + "/" + System.getProperty("os.name") + "/" + System.mapLibraryName("nosession_libc"))) { assert is != null: "Native library not compiled"; Utils.copy(is, Files.newOutputStream(tempFile.toPath())); } |