Luigi Auriemma

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

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: help me to understand ) ....
PostPosted: 11 May 2009 22:12 

Joined: 11 May 2009 20:06
Posts: 15
My need is to write application that will get servers list for BattleField2 (and its mods in future)
By sniffing original game I'm just know that the servers list is encrypted.

Can any one explain me step by step what i need to do to get servers list?
(Sending requests, works with received data, may be etc... )

Unfortunately i don't know C++ and glist sourcecode doesnt help me to much.


Top
 Profile  
 
 
 Post subject: Re: help me to understand ) ....
PostPosted: 11 May 2009 22:23 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
if you want to write it from scratch and you don't know C, then i don't think you can, but Luigi can prolly tell you way more about it (making such tools is not my field)


Top
 Profile  
 
 Post subject: Re: help me to understand ) ....
PostPosted: 11 May 2009 22:25 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
bf2 uses the Gamespy master server so use gslist:

http://aluigi.org/papers.htm#gslist

example:
Code:
gslist -n battlefield2 -X \hostname\hostport\gamever\country\mapname\gametype\gamemode\numplayers\maxplayers\password\bf2_ranked
and yes you can receive from the master server also other bf2 specific values like gamevariant (I guess the one needed to identify the mods), bf2_anticheat, bf2_dedicated, bf2_ranked (used in my example) and so on


Top
 Profile  
 
 Post subject: Re: help me to understand ) ....
PostPosted: 12 May 2009 01:51 

Joined: 11 May 2009 20:06
Posts: 15
Ok, it seems to be clear, but i have few questions


Every time In the send request, i see new value (see marked with bold)
Quote:
........ .battlef
ield2.gs live.%TG
nyX;o.
\h ostname\
hostport \gamever
\country \mapname
\gametyp e\gamemo
de\numpl ayers\ma
xplayers \passwor
d\bf2_ra nked....
.

is it random generated bytes from Random ID or its something else ?

Are the Delphi conversion of the function enctypex_decoder_convert_to_ipport ?


Top
 Profile  
 
 Post subject: Re: help me to understand ) ....
PostPosted: 12 May 2009 11:43 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
that id is randomly generated each time and I'm not aware of ports to delphi of my enctypex function


Top
 Profile  
 
 Post subject: Re: help me to understand ) ....
PostPosted: 12 May 2009 12:11 

Joined: 11 May 2009 20:06
Posts: 15
And how about realisation of that decryption stuff in DLL module ?


Top
 Profile  
 
 Post subject: Re: help me to understand ) ....
PostPosted: 12 May 2009 15:11 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
Code:
gcc -shared -o enctypex_decoder.dll enctypex_decoder.c
obviously if you use this dll remember that my code is released under the GPL license


Top
 Profile  
 
 Post subject: Re: help me to understand ) ....
PostPosted: 12 May 2009 18:39 

Joined: 11 May 2009 20:06
Posts: 15
ok. Thanks .


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 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: