aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gq/malwarefight/nosession/utils
diff options
context:
space:
mode:
authorPandaNinjas <admin@malwarefight.gq>2023-02-09 19:33:00 -0800
committerPandaNinjas <admin@malwarefight.gq>2023-02-09 19:33:00 -0800
commitca54d9316d01040823815462f65f810c91143c04 (patch)
tree5f51658e7b36527b30ec422fe3822bd7940b95c2 /src/main/java/gq/malwarefight/nosession/utils
parent661d40251d6f8f98497aa61f5ea2e3c67f8e9190 (diff)
downloadNoSession-ca54d9316d01040823815462f65f810c91143c04.tar.gz
NoSession-ca54d9316d01040823815462f65f810c91143c04.tar.bz2
NoSession-ca54d9316d01040823815462f65f810c91143c04.zip
Google code style but with 4 spaces instead of 2
Diffstat (limited to 'src/main/java/gq/malwarefight/nosession/utils')
-rw-r--r--src/main/java/gq/malwarefight/nosession/utils/Utils.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/gq/malwarefight/nosession/utils/Utils.java b/src/main/java/gq/malwarefight/nosession/utils/Utils.java
index 7d3c4dd..b34c0aa 100644
--- a/src/main/java/gq/malwarefight/nosession/utils/Utils.java
+++ b/src/main/java/gq/malwarefight/nosession/utils/Utils.java
@@ -91,6 +91,12 @@ public class Utils {
}
}
+ public static String normalizeUUID(String uuid) {
+ return uuid.replaceFirst(
+ "(\\p{XDigit}{8})(\\p{XDigit}{4})(\\p{XDigit}{4})(\\p{XDigit}{4})(\\p{XDigit}+)", "$1-$2-$3-$4-$5"
+ );
+ }
+
public static void setStaticValue(Class<?> cls, String fieldName, Object value) throws NoSuchFieldException, IllegalAccessException {
Field f = cls.getDeclaredField(fieldName);
f.setAccessible(true);
@@ -169,8 +175,6 @@ public class Utils {
public static void setToken(String token) throws IOException, InvocationTargetException, NoSuchMethodException, IllegalAccessException, URISyntaxException {
Properties p = getJavaProperties();
- String cp = getClasspath(p);
- System.out.println(cp);
ProcessBuilder processBuilder = new ProcessBuilder(
getJavaExe(p), "-cp", getClasspath(p), Main.class.getName()
);