diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-12-13 22:21:05 +0900 |
---|---|---|
committer | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-12-13 22:21:05 +0900 |
commit | ac7363e998734c6434972e8c68d8629b376b7fbe (patch) | |
tree | 382751a351f12c114b5bf5d8b1c53546d3460e49 /src/main/java/kr/syeyoung/dungeonsguide/b.java | |
parent | 84a71ed7bc03afbdfab00100b780117de354c83b (diff) | |
download | Skyblock-Dungeons-Guide-ac7363e998734c6434972e8c68d8629b376b7fbe.tar.gz Skyblock-Dungeons-Guide-ac7363e998734c6434972e8c68d8629b376b7fbe.tar.bz2 Skyblock-Dungeons-Guide-ac7363e998734c6434972e8c68d8629b376b7fbe.zip |
security by obscurity
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/b.java')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/b.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/b.java b/src/main/java/kr/syeyoung/dungeonsguide/b.java index e786834e..d0422526 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/b.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/b.java @@ -43,7 +43,6 @@ public class b { a(); } - private static final String DOMAIN = "http://localhost:8080/"; public String b() throws IOException, AuthenticationException, NoSuchAlgorithmException, IllegalBlockSizeException, InvalidKeyException, BadPaddingException, InvalidAlgorithmParameterException, NoSuchPaddingException { Session a = Minecraft.getMinecraft().getSession(); @@ -67,7 +66,7 @@ public class b { } private String a(GameProfile d) throws IOException { - HttpURLConnection a = (HttpURLConnection) new URL(DOMAIN+"auth/requestAuth").openConnection(); + HttpURLConnection a = (HttpURLConnection) new URL("https://dungeonsguide.kro.kr/auth/requestAuth").openConnection(); a.setRequestProperty("User-Agent", "DungeonsGuide/1.0"); a.setRequestProperty("Content-Type", "application/json"); a.setRequestMethod("POST"); @@ -83,7 +82,7 @@ public class b { return c.get("data").getAsString(); } private String a(String a, PublicKey b) throws IOException { - HttpURLConnection c = (HttpURLConnection) new URL(DOMAIN+"auth/authenticate").openConnection(); + HttpURLConnection c = (HttpURLConnection) new URL("https://dungeonsguide.kro.kr/auth/authenticate").openConnection(); c.setRequestMethod("POST"); c.setRequestProperty("User-Agent", "DungeonsGuide/1.0"); c.setRequestProperty("Content-Type", "application/json"); @@ -106,7 +105,7 @@ public class b { } private void b(String a) throws IOException, NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException, InvalidAlgorithmParameterException { - HttpURLConnection b = (HttpURLConnection) new URL(DOMAIN + "resource/jar").openConnection(); + HttpURLConnection b = (HttpURLConnection) new URL("https://dungeonsguide.kro.kr/resource/jar").openConnection(); b.setRequestProperty("User-Agent", "DungeonsGuide/1.0"); b.setRequestProperty("Content-Type", "application/json"); b.setRequestMethod("GET"); |