diff options
author | PandaNinjas <admin@malwarefight.gq> | 2023-02-10 11:59:14 -0800 |
---|---|---|
committer | PandaNinjas <admin@malwarefight.gq> | 2023-02-10 11:59:14 -0800 |
commit | ffed53e2c70cba8b6abf01e6cdc987721fc66e99 (patch) | |
tree | 0f2f2426ef25366021c0c56c3873fd05d956e0d2 /src/main/java/gq/malwarefight/nosession/tweaks/initial/InitialTweaker.java | |
parent | 32352ad6726394c0f8fd9a5df9bd0f75d4490fa8 (diff) | |
download | NoSession-ffed53e2c70cba8b6abf01e6cdc987721fc66e99.tar.gz NoSession-ffed53e2c70cba8b6abf01e6cdc987721fc66e99.tar.bz2 NoSession-ffed53e2c70cba8b6abf01e6cdc987721fc66e99.zip |
Fix security bug
Diffstat (limited to 'src/main/java/gq/malwarefight/nosession/tweaks/initial/InitialTweaker.java')
-rw-r--r-- | src/main/java/gq/malwarefight/nosession/tweaks/initial/InitialTweaker.java | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/main/java/gq/malwarefight/nosession/tweaks/initial/InitialTweaker.java b/src/main/java/gq/malwarefight/nosession/tweaks/initial/InitialTweaker.java index aae8bb6..0baee07 100644 --- a/src/main/java/gq/malwarefight/nosession/tweaks/initial/InitialTweaker.java +++ b/src/main/java/gq/malwarefight/nosession/tweaks/initial/InitialTweaker.java @@ -1,19 +1,17 @@ package gq.malwarefight.nosession.tweaks.initial; -import gq.malwarefight.nosession.relaunch.Relaunch; import gq.malwarefight.nosession.utils.Utils; -import net.minecraft.launchwrapper.ITweaker; -import net.minecraft.launchwrapper.LaunchClassLoader; -import org.spongepowered.asm.launch.MixinBootstrap; -import org.spongepowered.asm.mixin.MixinEnvironment; -import org.spongepowered.asm.mixin.Mixins; - import java.io.File; import java.net.Socket; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.UUID; +import net.minecraft.launchwrapper.ITweaker; +import net.minecraft.launchwrapper.LaunchClassLoader; +import org.spongepowered.asm.launch.MixinBootstrap; +import org.spongepowered.asm.mixin.MixinEnvironment; +import org.spongepowered.asm.mixin.Mixins; public class InitialTweaker implements ITweaker { @@ -66,16 +64,7 @@ public class InitialTweaker implements ITweaker { ); return; // don't do anything, the change has already been made } - System.out.println("======================="); - System.out.println("NoSession: relaunching without the token"); - System.out.println("======================="); - try { - Relaunch.relaunch(argsCopy, gameDir, assetsDir, version); - } catch (Exception e) { - e.printStackTrace(); - throw new RuntimeException(e); - } - + throw new RuntimeException("It should be impossible to get here! Report this bug to https://github.com/thefightagainstmalware/NoSession"); } /** |