• Ищем качественного (не новичок) разработчиков Xenforo для этого форума! В идеале, чтобы ты был фулл стек программистом. Если у тебя есть что показать, то свяжись с нами по контактным данным: https://t.me/DREDD

UserInfo по хвиду

Забаненный
Забаненный
Статус
Оффлайн
Регистрация
7 Дек 2024
Сообщения
28
Реакции
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
мега утилка от чат гпт

venom:
Expand Collapse Copy
package cc.ellant.utils.client;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import org.json.JSONArray;
import org.json.JSONObject;

public class UserInfo {

    public static String getUID() {
        try {
            String hwid = getLocalHwid();
            return check(hwid, "https://pastebin.com/raw/cwAxfxmS", "UID");
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

    public static String getNick() {
        try {
            String hwid = getLocalHwid();
            return check(hwid, "https://pastebin.com/raw/cwAxfxmS", "Nick");
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

    public static String getRole() {
        try {
            String hwid = getLocalHwid();
            return check(hwid, "https://pastebin.com/raw/cwAxfxmS", "Role");
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
    private static String getLocalHwid() throws Exception {
        Process process = Runtime.getRuntime().exec("wmic csproduct get uuid");
        BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
        // for(int i = 0; i < 2; i++) {
        // reader.readline();
        // }
        // ТУПО!!!!
        reader.readLine();
        reader.readLine();
        // Вот это селфкоооооод
        String hwid = reader.readLine().trim();
        return hwid;
    }


    private static String check(String hwid, String past, String field) throws Exception {
        URL url = new URL(past);
        HttpURLConnection connection = (HttpURLConnection) url.openConnection();
        connection.setRequestMethod("GET");
        BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));

        StringBuilder jsonText = new StringBuilder();
        String line;
        while ((line = reader.readLine()) != null) {
            jsonText.append(line);
        }
        reader.close();

        JSONObject data = new JSONObject(jsonText.toString());
        JSONArray users = data.getJSONArray("Users");

        for (int i = 0; i < users.length(); i++) {
            JSONObject user = users.getJSONObject(i);
            if (user.getString("Hwid").equals(hwid)) {
                return user.getString(field);
            }
        }
        return null;
    }
}
кстати, оцените дискорд рпс (на то что гифки нету не обращайте внимания, я это пофиксил и добнул 4 вида гиф)
 

Вложения

  • image.png
    image.png
    23.3 KB · Просмотры: 475
мега утилка от чат гпт

venom:
Expand Collapse Copy
package cc.ellant.utils.client;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import org.json.JSONArray;
import org.json.JSONObject;

public class UserInfo {

    public static String getUID() {
        try {
            String hwid = getLocalHwid();
            return check(hwid, "https://pastebin.com/raw/cwAxfxmS", "UID");
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

    public static String getNick() {
        try {
            String hwid = getLocalHwid();
            return check(hwid, "https://pastebin.com/raw/cwAxfxmS", "Nick");
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

    public static String getRole() {
        try {
            String hwid = getLocalHwid();
            return check(hwid, "https://pastebin.com/raw/cwAxfxmS", "Role");
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
    private static String getLocalHwid() throws Exception {
        Process process = Runtime.getRuntime().exec("wmic csproduct get uuid");
        BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
        // for(int i = 0; i < 2; i++) {
        // reader.readline();
        // }
        // ТУПО!!!!
        reader.readLine();
        reader.readLine();
        // Вот это селфкоооооод
        String hwid = reader.readLine().trim();
        return hwid;
    }


    private static String check(String hwid, String past, String field) throws Exception {
        URL url = new URL(past);
        HttpURLConnection connection = (HttpURLConnection) url.openConnection();
        connection.setRequestMethod("GET");
        BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));

        StringBuilder jsonText = new StringBuilder();
        String line;
        while ((line = reader.readLine()) != null) {
            jsonText.append(line);
        }
        reader.close();

        JSONObject data = new JSONObject(jsonText.toString());
        JSONArray users = data.getJSONArray("Users");

        for (int i = 0; i < users.length(); i++) {
            JSONObject user = users.getJSONObject(i);
            if (user.getString("Hwid").equals(hwid)) {
                return user.getString(field);
            }
        }
        return null;
    }
}
кстати, оцените дискорд рпс (на то что гифки нету не обращайте внимания, я это пофиксил и добнул 4 вида гиф)
кинь json код, а то пастеры не поймут
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
мега утилка от чат гпт

venom:
Expand Collapse Copy
package cc.ellant.utils.client;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import org.json.JSONArray;
import org.json.JSONObject;

public class UserInfo {

    public static String getUID() {
        try {
            String hwid = getLocalHwid();
            return check(hwid, "https://pastebin.com/raw/cwAxfxmS", "UID");
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

    public static String getNick() {
        try {
            String hwid = getLocalHwid();
            return check(hwid, "https://pastebin.com/raw/cwAxfxmS", "Nick");
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

    public static String getRole() {
        try {
            String hwid = getLocalHwid();
            return check(hwid, "https://pastebin.com/raw/cwAxfxmS", "Role");
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
    private static String getLocalHwid() throws Exception {
        Process process = Runtime.getRuntime().exec("wmic csproduct get uuid");
        BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
        // for(int i = 0; i < 2; i++) {
        // reader.readline();
        // }
        // ТУПО!!!!
        reader.readLine();
        reader.readLine();
        // Вот это селфкоооооод
        String hwid = reader.readLine().trim();
        return hwid;
    }


    private static String check(String hwid, String past, String field) throws Exception {
        URL url = new URL(past);
        HttpURLConnection connection = (HttpURLConnection) url.openConnection();
        connection.setRequestMethod("GET");
        BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));

        StringBuilder jsonText = new StringBuilder();
        String line;
        while ((line = reader.readLine()) != null) {
            jsonText.append(line);
        }
        reader.close();

        JSONObject data = new JSONObject(jsonText.toString());
        JSONArray users = data.getJSONArray("Users");

        for (int i = 0; i < users.length(); i++) {
            JSONObject user = users.getJSONObject(i);
            if (user.getString("Hwid").equals(hwid)) {
                return user.getString(field);
            }
        }
        return null;
    }
}
кстати, оцените дискорд рпс (на то что гифки нету не обращайте внимания, я это пофиксил и добнул 4 вида гиф)
дефолт для ellant
 
удали это пожалуйста
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
json код который на пастебинчик))) а походу ты даже им и не пользовался.. хотя это к лучшему, userinfo самый лучший просто имбейщий $$$!!!!
мне такая фигня не нужна я просто ответил на сообщение.
 
мега утилка от чат гпт

venom:
Expand Collapse Copy
package cc.ellant.utils.client;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import org.json.JSONArray;
import org.json.JSONObject;

public class UserInfo {

    public static String getUID() {
        try {
            String hwid = getLocalHwid();
            return check(hwid, "https://pastebin.com/raw/cwAxfxmS", "UID");
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

    public static String getNick() {
        try {
            String hwid = getLocalHwid();
            return check(hwid, "https://pastebin.com/raw/cwAxfxmS", "Nick");
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

    public static String getRole() {
        try {
            String hwid = getLocalHwid();
            return check(hwid, "https://pastebin.com/raw/cwAxfxmS", "Role");
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
    private static String getLocalHwid() throws Exception {
        Process process = Runtime.getRuntime().exec("wmic csproduct get uuid");
        BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
        // for(int i = 0; i < 2; i++) {
        // reader.readline();
        // }
        // ТУПО!!!!
        reader.readLine();
        reader.readLine();
        // Вот это селфкоооооод
        String hwid = reader.readLine().trim();
        return hwid;
    }


    private static String check(String hwid, String past, String field) throws Exception {
        URL url = new URL(past);
        HttpURLConnection connection = (HttpURLConnection) url.openConnection();
        connection.setRequestMethod("GET");
        BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));

        StringBuilder jsonText = new StringBuilder();
        String line;
        while ((line = reader.readLine()) != null) {
            jsonText.append(line);
        }
        reader.close();

        JSONObject data = new JSONObject(jsonText.toString());
        JSONArray users = data.getJSONArray("Users");

        for (int i = 0; i < users.length(); i++) {
            JSONObject user = users.getJSONObject(i);
            if (user.getString("Hwid").equals(hwid)) {
                return user.getString(field);
            }
        }
        return null;
    }
}
кстати, оцените дискорд рпс (на то что гифки нету не обращайте внимания, я это пофиксил и добнул 4 вида гиф)
а типо смысл этого когда если легко можно сменить пастебин репозиторий через тот же recaf ну или http debugerе можно подменить ответ от пастебина
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
не забывайте что не на каждой винде + пк есть wmic )))))
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
дефолт для ellant
так я буду делать не через пастебин, я попробую сделать через mysql или апи от supabase ибо делать прямое подкл через mysql чут чут не безопасно и че ты так на мя обижен? раньше нормально общались
хз
удали это пожалуйста
зачем?
 
так я буду делать не через пастебин, я попробую сделать через mysql или апи от supabase ибо делать прямое подкл через mysql чут чут не безопасно и че ты так на мя обижен? раньше нормально общались

хз
где я обижен? я написал , что дефолт для твоей пасты 3.1 юзать пастбин и так говнокодить, на личность я не переходил, клиент откровенно говно
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
а типо смысл этого когда если легко можно сменить пастебин репозиторий через тот же recaf ну или http debugerе можно подменить ответ от пастебина
в целом да
где я обижен? я написал , что дефолт для твоей пасты 3.1 юзать пастбин и так говнокодить, на личность я не переходил, клиент откровенно говно
ну хзз, вспомни как ты раньше со мной общался (месяца 3-4 назад) и теперь, xD, + прочитай мое сообщение, я нашел нормальные хосты для бд и думаю их юзать, по типу supabase на postgresql либо другие бд mysql, и вспомни свое дерьмо которое ты пытался говнокодить "сам"
не забывайте что не на каждой винде + пк есть wmic )))))
можно сделать банальную проверку, у меня сделана самая базовая под мой пк, потому что софт в основном делался под себя
 
Последнее редактирование:
а как хвид в таком формате получать?
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Назад
Сверху Снизу