Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 13:21

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: MineCraft
PostPosted: 08 Jan 2011 13:01 

Joined: 01 Jun 2010 05:58
Posts: 18
Server version 0.2.8
packets needed to login:

packet 1 client to server
login request
Code:
0x01


packet 2 client to server
login
Code:
0x00, 0x00, 0x00, 0x06, 0x00,
[len of name],
[string name],
0x00, 0x08,
[string "password"],
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00


packet used to keep the connection alive:
Code:
0x10, 0x01


A little video of it: http://www.youtube.com/watch?v=xnQXk1JF0Fc

Still looking to find some bugs in the network protocol but hadn't any luck till now.
Have fun, NeoCortex


Top
 Profile  
 
 
 Post subject: Re: MineCraft
PostPosted: 08 Jan 2011 13:10 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
if I'm not in error I gave a look at this game but except for some stupid resources consumptions I had no "quick" luck.
after all it's a java server so you can only have things like stupid DoS (for example cpu at 100% or RAM consuming) or file reading/writing.


Top
 Profile  
 
 Post subject: Re: MineCraft
PostPosted: 09 Jan 2011 07:08 

Joined: 16 Aug 2007 06:25
Posts: 367
Nice work Neo!


Top
 Profile  
 
 Post subject: Re: MineCraft
PostPosted: 09 Jan 2011 08:38 

Joined: 16 Aug 2007 06:25
Posts: 367
Have you tried this with the latest server version?

It seems the protocol has been updated. I did some sniffing and it looks slightly similar, but can't get passed the "failed to verify username".


Top
 Profile  
 
 Post subject: Re: MineCraft
PostPosted: 09 Jan 2011 11:43 

Joined: 01 Jun 2010 05:58
Posts: 18
I will give it a look as soon as i get my hands on the new server.
Right now the server has the option "online-mode=true|false" in "server.properties"

If it's set to true all accounts are doublechecked against 194.28.157.42 (www.minecraft.net)
and you have to supply a valid username and password like this:

Code:
0x00, 0x00, 0x00, 0x06, 0x00,
[len of name],
[string name],
0x00, 0x08,
[string "password"],
[len of password],
[string password],
0x00


I'm not 100% sure this packet is correct, as i said i need to get my hands on the new server first...


Top
 Profile  
 
 Post subject: Re: MineCraft
PostPosted: 09 Jan 2011 14:44 

Joined: 01 Jun 2010 05:58
Posts: 18
Server beta 1.1_02
Code:
0000000C  01                                               .
0000000D  00 00 00 08 00 09 4e 65  6f 43 6f 72 74 65 78 00 ......Ne oCortex.
0000001D  08 50 61 73 73 77 6f 72  64 00 00 00 00 00 00 00 .Passwor d.......
0000002D  00 00     


Only change is 00 00 00 08, which seems to indicate the protocol version.
If you try to connect with the old packet 00 00 00 06 the server disconnects the client, "outdated client".

Everything else is the same.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron