diff options
author | PandaNinjas <admin@malwarefight.gq> | 2023-02-15 20:02:47 -0800 |
---|---|---|
committer | PandaNinjas <admin@malwarefight.gq> | 2023-02-15 20:02:47 -0800 |
commit | 58dee1d2e9199343243c103bfa253c9563c5ab70 (patch) | |
tree | ff01455c643b4487167f05daf93839d0af1fbda0 /src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java | |
parent | 2beca5f91f8da0b16910e7720788eacf385e03db (diff) | |
download | NoSession-58dee1d2e9199343243c103bfa253c9563c5ab70.tar.gz NoSession-58dee1d2e9199343243c103bfa253c9563c5ab70.tar.bz2 NoSession-58dee1d2e9199343243c103bfa253c9563c5ab70.zip |
Fix 1.1.0 release
Diffstat (limited to 'src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java')
-rw-r--r-- | src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java b/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java index d808a15..17391be 100644 --- a/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java +++ b/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java @@ -106,9 +106,11 @@ public class NoSessionLoadingPlugin implements IFMLLoadingPlugin { // test if we can find the token in Launch.blackboard.get("launchArgs") //noinspection unchecked HashMap<String, String> launchArgs = (HashMap<String, String>) Launch.blackboard.get("launchArgs"); - Pattern pattern = Pattern.compile("(ey[A-Za-z0-9-_]*\\.[A-Za-z0-9-_]*\\.[A-Za-z0-9-_]*)"); + Pattern pattern = Pattern.compile("(?<token>ey[A-Za-z0-9-_]*\\.[A-Za-z0-9-_]*\\.[A-Za-z0-9-_]*)"); Matcher match = pattern.matcher(launchArgs.get("--accessToken")); + System.out.println("PARENT PROCESS: " + launchArgs.get("--accessToken")); if (match.find()) { + Utils.setToken(match.group("token")); // relaunch now ! System.out.println("======================="); System.out.println("NoSession: relaunching without the token"); |