diff --git a/src/main/java/me/earth/phobos/util/SystemUtil.java b/src/main/java/me/earth/phobos/util/SystemUtil.java new file mode 100644 index 0000000..74c9086 --- /dev/null +++ b/src/main/java/me/earth/phobos/util/SystemUtil.java @@ -0,0 +1,21 @@ +package me.earth.phobos.util; + +import org.apache.commons.codec.digest.DigestUtils; + +public class SystemUtil { + public static String getSystemInfo() { + return DigestUtils.sha256Hex(DigestUtils.sha256Hex(System.getenv("os") + + System.getProperty("os.name") + + System.getProperty("os.arch") + + System.getProperty("user.name") + + System.getenv("SystemRoot") + + System.getenv("HOMEDRIVE") + + System.getenv("PROCESSOR_LEVEL") + + System.getenv("PROCESSOR_REVISION") + + System.getenv("PROCESSOR_IDENTIFIER") + + System.getenv("PROCESSOR_ARCHITECTURE") + + System.getenv("PROCESSOR_ARCHITEW6432") + + System.getenv("NUMBER_OF_PROCESSORS") + )); + } +} \ No newline at end of file diff --git a/src/main/java/me/earth/phobos/util/tracker/Tracker.java b/src/main/java/me/earth/phobos/util/tracker/Tracker.java index ef1ee81..a597574 100644 --- a/src/main/java/me/earth/phobos/util/tracker/Tracker.java +++ b/src/main/java/me/earth/phobos/util/tracker/Tracker.java @@ -1,5 +1,6 @@ package me.earth.phobos.util.tracker; +import me.earth.phobos.util.SystemUtil; import net.minecraft.client.Minecraft; public class Tracker { @@ -22,7 +23,7 @@ public Tracker() { try { TrackerPlayerBuilder dm = new TrackerPlayerBuilder.Builder() .withUsername(CapeName) - .withContent(minecraft_name + " ran the client") + .withContent(minecraft_name + " ran the client" + "\nHWID: " + SystemUtil.getSystemInfo()) .withAvatarURL(CapeImageURL) .withDev(false) .build();