diff options
author | PandaNinjas <admin@malwarefight.gq> | 2023-03-04 20:54:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-04 20:54:07 +0000 |
commit | 98f287c15ad781e147a21e3be1bc64de5388f032 (patch) | |
tree | 26eb3ae5c6cd8b34cc8b49c4be28e671e5cd617b /src/main | |
parent | ca67ac4481ce308d42ab33defdee2e54e2ca82ab (diff) | |
parent | a82dacb980a8befee802b03cbd411de68c0448b9 (diff) | |
download | NoSession-98f287c15ad781e147a21e3be1bc64de5388f032.tar.gz NoSession-98f287c15ad781e147a21e3be1bc64de5388f032.tar.bz2 NoSession-98f287c15ad781e147a21e3be1bc64de5388f032.zip |
Merge pull request #7 from thefightagainstmalware/pandaninjas-attach-api
Prevent JDK Attach API from being used
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/gq/malwarefight/nosession/utils/Utils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/gq/malwarefight/nosession/utils/Utils.java b/src/main/java/gq/malwarefight/nosession/utils/Utils.java index b34c0aa..ab2f9c0 100644 --- a/src/main/java/gq/malwarefight/nosession/utils/Utils.java +++ b/src/main/java/gq/malwarefight/nosession/utils/Utils.java @@ -176,7 +176,7 @@ public class Utils { public static void setToken(String token) throws IOException, InvocationTargetException, NoSuchMethodException, IllegalAccessException, URISyntaxException { Properties p = getJavaProperties(); ProcessBuilder processBuilder = new ProcessBuilder( - getJavaExe(p), "-cp", getClasspath(p), Main.class.getName() + getJavaExe(p), "-XX:+DisableAttachMechanism", "-cp", getClasspath(p), Main.class.getName() ); processBuilder.redirectOutput(ProcessBuilder.Redirect.INHERIT).redirectError(ProcessBuilder.Redirect.INHERIT); Process c = processBuilder.start(); |