How can I obtain VCMP master list information from other clients??

Started by Chicken, Feb 20, 2022, 08:07 AM

Previous topic - Next topic

habi

When sending request to server, there is no need to convert hex or byte. It is the same packet every time. I remember last byte of packet is i or c. if it is i, you want information no.1
If it is c, you want information no.2 from server.
And information no.1 is servers name, gamemode, no.of players.
Information 2 contains names of all the players.
wiki
Could you be more specific in asking about convert hex to bytes?
like I have this byte, how i convert this bytes to ascii, etc.
Iterate through the buffer received from server. Or Post the buffer received here. We can help you

Chicken

Quote from: habi on Feb 24, 2022, 01:40 AMWhen sending request to server, there is no need to convert hex or byte. It is the same packet every time. I remember last byte of packet is i or c. if it is i, you want information no.1
If it is c, you want information no.2 from server.
And information no.1 is servers name, gamemode, no.of players.
Information 2 contains names of all the players.
wiki
Could you be more specific in asking about convert hex to bytes?
like I have this byte, how i convert this bytes to ascii, etc.
Iterate through the buffer received from server. Or Post the buffer received here. We can help you
http://wiki.thijn.ovh/index.php?title=Query_Mechanism said that Byte4-10 is composed of IP address and port. If I enter a specified IP address to request a query, what should I do?

habi

I will show you a live demonstration. This will be helpful for others too in learning wireshark.
See i opened VCMPBrowser and

I clicked on a server shown in the image. At that moment Browser sends packets to that server.

I had already opened wireshark( packet capturing tool) and see what it captured

The data section of packet which is highlighted in blue. Its ASCII equivalent is shown on right.

56 43 4d 50 41 02 41 d3 00 20 69

Lets investigate what this is.
56 means 5*16+6=80+6=86 and 86 means 'V' in ascii table. ascii table
So first 4 bytes( each of these two digits is called byte) 56 43 4d 50 means VCMP

Now, what is 41=16*4+1=65
02=2
41=again, 65
d3=d*16+3=13*16+3=211
So the 4 bytes 41 02 41 d3 gives 65 2 65 211
Now what is the server ip from VCMP Browser?

Ha. it is exactly the same.

The next 2 bytes viz 00 20 and port 8192 on investigation showed me. port= 00 +( 20 *256 )= 00 + (32*256)=00+8192. This is becauses 20 means 2*16+0=32

The last byte is 69. This is the ASCII equivalent of 'i'. You can see it on the right panel of wireshark window.
i means we want information about server name, gamemode etc.

Having learnt this. you could do the reverse. Will you?

Chicken

Quote from: habi on Feb 24, 2022, 07:40 AMI will show you a live demonstration. This will be helpful for others too in learning wireshark.
See i opened VCMPBrowser and

I clicked on a server shown in the image. At that moment Browser sends packets to that server.

I had already opened wireshark( packet capturing tool) and see what it captured

The data section of packet which is highlighted in blue. Its ASCII equivalent is shown on right.

56 43 4d 50 41 02 41 d3 00 20 69

Lets investigate what this is.
56 means 5*16+6=80+6=86 and 86 means 'V' in ascii table. ascii table
So first 4 bytes( each of these two digits is called byte) 56 43 4d 50 means VCMP

Now, what is 41=16*4+1=65
02=2
41=again, 65
d3=d*16+3=13*16+3=211
So the 4 bytes 41 02 41 d3 gives 65 2 65 211
Now what is the server ip from VCMP Browser?

Ha. it is exactly the same.

The next 2 bytes viz 00 20 and port 8192 on investigation showed me. port= 00 +( 20 *256 )= 00 + (32*256)=00+8192. This is becauses 20 means 2*16+0=32

The last byte is 69. This is the ASCII equivalent of 'i'. You can see it on the right panel of wireshark window.
i means we want information about server name, gamemode etc.

Having learnt this. you could do the reverse. Will you?

In fact, I have already captured the package and extracted the data a few days ago, but I don't know how to specify an IP address and port, maybe your explanation will help me, thank you Habi :D

2b2ttianxiu

Quote from: Chicken on Feb 24, 2022, 11:34 AM
Quote from: habi on Feb 24, 2022, 07:40 AMI will show you a live demonstration. This will be helpful for others too in learning wireshark.
See i opened VCMPBrowser and

I clicked on a server shown in the image. At that moment Browser sends packets to that server.

I had already opened wireshark( packet capturing tool) and see what it captured

The data section of packet which is highlighted in blue. Its ASCII equivalent is shown on right.

56 43 4d 50 41 02 41 d3 00 20 69

Lets investigate what this is.
56 means 5*16+6=80+6=86 and 86 means 'V' in ascii table. ascii table
So first 4 bytes( each of these two digits is called byte) 56 43 4d 50 means VCMP

Now, what is 41=16*4+1=65
02=2
41=again, 65
d3=d*16+3=13*16+3=211
So the 4 bytes 41 02 41 d3 gives 65 2 65 211
Now what is the server ip from VCMP Browser?

Ha. it is exactly the same.

The next 2 bytes viz 00 20 and port 8192 on investigation showed me. port= 00 +( 20 *256 )= 00 + (32*256)=00+8192. This is becauses 20 means 2*16+0=32

The last byte is 69. This is the ASCII equivalent of 'i'. You can see it on the right panel of wireshark window.
i means we want information about server name, gamemode etc.

Having learnt this. you could do the reverse. Will you?

In fact, I have already captured the package and extracted the data a few days ago, but I don't know how to specify an IP address and port, maybe your explanation will help me, thank you Habi :D

use Python, u can do this data: b'VCMP\x7f\x00\x00\x01H\x14' and can get many servers.