Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
hwid 우성이 db로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
strictpvp committed Feb 28, 2024
1 parent 6b0d743 commit 518ed27
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/main/java/me/reich/tsarbomba/utils/Hwid.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.text.SimpleDateFormat;
Expand All @@ -19,19 +20,23 @@ public class Hwid {
public static boolean checkHWID() {
String hwid = getHWID();
try {
URL url = new URL("https://pastebin.com/raw/gvCFjrBf");
URLConnection conn = url.openConnection();
URL url = new URL("http://121.254.171.162:20772/hwid/" + hwid);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("GET");
conn.setDoOutput(true);

BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
while ((line = reader.readLine()) != null) {
if (line.contains(hwid)) {
return true;
}
String response = reader.readLine();

if (response.equalsIgnoreCase("True")) {
return true;
} else {
return false;
}
} catch (IOException e) {
e.printStackTrace();
return false;
}
return false;
}

public static String getHWID() {
Expand Down

0 comments on commit 518ed27

Please sign in to comment.