aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-13 22:21:05 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-13 22:21:05 +0900
commitac7363e998734c6434972e8c68d8629b376b7fbe (patch)
tree382751a351f12c114b5bf5d8b1c53546d3460e49
parent84a71ed7bc03afbdfab00100b780117de354c83b (diff)
downloadSkyblock-Dungeons-Guide-ac7363e998734c6434972e8c68d8629b376b7fbe.tar.gz
Skyblock-Dungeons-Guide-ac7363e998734c6434972e8c68d8629b376b7fbe.tar.bz2
Skyblock-Dungeons-Guide-ac7363e998734c6434972e8c68d8629b376b7fbe.zip
security by obscurity
-rw-r--r--build.gradle2
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/b.java7
2 files changed, 4 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle
index 39abefbe..f51bae14 100644
--- a/build.gradle
+++ b/build.gradle
@@ -25,7 +25,7 @@ plugins {
*/
version = "1.0"
group= "kr.syeyoung.dungeonsguide" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
-archivesBaseName = "z"
+archivesBaseName = "dungeonsguide"
minecraft {
version = "1.8.9-11.15.1.1722"
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");