Home > OS >  Get playerlist from java minecraft server using java
Get playerlist from java minecraft server using java

Time:06-20

I am working on a Minecraft server sniffer to find users by username one of the first steps to do this is to get the username data to find a match

import java.net.Socket;
import java.io.DataOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.charset.Charset;  
import java.nio.charset.StandardCharsets;
import java.util.Base64;

public class ph{

public static void main(String [] args) throws IOException {
    String address = "185.199.95.86";
    int port = 25565;

    InetSocketAddress host = new InetSocketAddress(address, port);
    Socket socket = new Socket();
    System.out.println("Connecting...");
    socket.connect(host, port);
    System.out.println("Done!");
    System.out.println("Making streams...");
    DataOutputStream output = new DataOutputStream(socket.getOutputStream());
    DataInputStream input = new DataInputStream(socket.getInputStream());

    System.out.println("Done!");
    System.out.println("Attempting handshake... " host.getAddress().toString());


    byte [] handshakeMessage = createHandshakeMessage(address, port);

    // C->S : Handshake State=1
    // send packet length and packet
    writeVarInt(output, handshakeMessage.length);
    output.write(handshakeMessage);

    // C->S : Request
    output.writeByte(0x01); //size is only 1
    output.writeByte(0x00); //packet id for ping


    // S->C : Response
    int size = readVarInt(input);
    int packetId = readVarInt(input);

    if (packetId == -1) {
        throw new IOException("Premature end of stream.");
    }

    if (packetId != 0x00) { //we want a status response
        throw new IOException("Invalid packetID");
    }
    int length = readVarInt(input); //length of json string

    if (length == -1) {
        throw new IOException("Premature end of stream.");
    }

    if (length == 0) {
        throw new IOException("Invalid string length.");
    }

    byte[] in = new byte[length];
    input.readFully(in);  //read json string
    String json = new String(in);

    // C->S : Ping
    long now = System.currentTimeMillis();
    output.writeByte(0x09); //size of packet
    output.writeByte(0x01); //0x01 for ping
    output.writeLong(now); //time!?

    // S->C : Pong
    readVarInt(input);
    packetId = readVarInt(input);
    if (packetId == -1) {
        throw new IOException("Premature end of stream.");
    }

    if (packetId != 0x01) {
        throw new IOException("Invalid packetID");
    }
    long pingtime = input.readLong(); //read response


    // print out server info
    System.out.println(json);

    System.out.println("Done!");
}

public static byte [] createHandshakeMessage(String host, int port) throws IOException {
    ByteArrayOutputStream buffer = new ByteArrayOutputStream();

    DataOutputStream handshake = new DataOutputStream(buffer);
    handshake.writeByte(0x00); //packet id for handshake
    writeVarInt(handshake, 4); //protocol version
    writeString(handshake, host, StandardCharsets.UTF_8);
    handshake.writeShort(port); //port
    writeVarInt(handshake, 1); //state (1 for handshake)

    return buffer.toByteArray();
}

public static void writeString(DataOutputStream out, String string, Charset charset) throws IOException {
    byte [] bytes = string.getBytes(charset);
    writeVarInt(out, bytes.length);
    out.write(bytes);
}

public static void writeVarInt(DataOutputStream out, int paramInt) throws IOException {
    while (true) {
        if ((paramInt & 0xFFFFFF80) == 0) {
          out.writeByte(paramInt);
          return;
        }

        out.writeByte(paramInt & 0x7F | 0x80);
        paramInt >>>= 7;
    }
}

public static int readVarInt(DataInputStream in) throws IOException {
    int i = 0;
    int j = 0;
    while (true) {
        int k = in.readByte();
        i |= (k & 0x7F) << j   * 7;
        if (j > 5) throw new RuntimeException("VarInt too big");
        if ((k & 0x80) != 128) break;
    }
    return i;
}
}

I heard that the server will send a player info packet but all i get is:

{"version":{"protocol":4,"name":"Arcim 1.19"},"players":{"online":5638,"max":5639,"sample":[]},"description":{"text":"            §6●§e●§6● §7§lMC§6§lHUB §7[§a1.8§7-§a1.18§7] §6●§e●§6●§r \n       §6➥ §b§lPRISON§7, §e§lSKYBLOCK§7, §a§lSURVIVAL§7!§r§r"},"favicon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAbD0lEQVR4Xu1bd1RVR7cfQIrCvcClXjpcuJRLF9RYEjUmn9FYMHaNxmgSG92CLTZU7FJEkF6kgyiKdFBBFNTPfOZ9ibGBCkqTquaLmt9bM feGyTlrffWiu8fZ63fOsCZ2bP3b/bsvc cAyHv2rv2rr1r79q79r9pPELISkLIZim /QO4DxxECDElhGwkhGwnhGwjhOwghOz8C z6C whhIT0A/2b3cAJ/65GDbn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XXDwVRcywVceXzhpY4sTrB/q7BpY48xi ZNCQQvY7189Ck5NF8ZFoCL525WGpMw9LXTgsk KrP4Irj/WXYbpYHXpD2HEYfbNF3ybryAoh pmpp/ST03YFadSVgaYgCtkLD1lUlv19IGR9/qd MtAq78/Qf84/7Kv416B1hgzSFyI3CSGLpLHvd01Z tExfWmwhBCy9H/AV4SQr/8Cy/8CK6T/evNnkH0N mfwkX4W82fwJ4QEDMBy2b5/1961d 1de9feNUL GwBD8ozOF05aAAAAAElFTkSuQmCC","modinfo":{"type":"FML","modList":[]}}

What do all the letters mean and is it possible to get the player list from here?

If not, how can I get the player list?

CodePudding user response:

With the server you are currently pinging, it wont work. Servers can choose to override the players they send, and it can be faked. For other servers, you can receive (a sample) of this data: wiki.vg (lovely for packet things) states that it will be under the sample field, where you can find some of the players on the server. For smaller servers, it may show the whole player list. Try hosting your own vanilla server to see if it works.

CodePudding user response:

You can't know which player is on which server without adding plugin on the server.

You can only know the amount of player, but this can be faked. Here, you ping the server and you only find everything you can find.

  • Related