Page 2 of 5

Re: Overview of GameFort

Posted: 04 Jan 2010, 06:35
by kali
Hi renj, I read your blog and your discussion. Great walk throughs. I especially liked the way you explain each step that you're going through when decrypting the dlls :)

Do you think it'd be better to collate all these info and processes into a wiki entry? We're aiming for the openkore wiki not just to be a repository of information related to OpenKore, but also information about Ragnarok in general, like protocols, file formats (have we migrated the info from the old wiki to the new one?) and perhaps even these new encryption utilities.

Thanks for sharing your work and enabling other people to build on your research in true open source spirit :)

Re: Overview of GameFort

Posted: 04 Jan 2010, 08:01
by renjfk
Yo, first of all I appreciate. Currently my objective is clearing http://wiki.openkore.com/index.php?titl ... ed_servers list (in my free time) although I'm not even actively playing RO so it'll take time to clean all. And yeah, using wiki would be far advance for explaining such reverse things. I wouldn't mind explaining all steps during reverse engineering process. So if someone starts a section related to these things on wiki I can continue releasing there.

Re: Overview of GameFort

Posted: 04 Jan 2010, 10:40
by survivorsavior
renjfk wrote:
survivorsavior wrote:Server Name: LuminaRO
GameFort.dll:
GameFort.rar
Shield.dll: not found
It's same with RoxinityRO so you have to wait for Technology to update his plug-in.
thanks alot for clarifying!
I'm in the dilemma to returning to the server now, started on another server after bot block.

anyway, when the plugin updated, do I have to make any config entries or just run the bot with it as usual with the plugin added.

Re: Overview of GameFort

Posted: 04 Jan 2010, 10:50
by renjfk
That completely depends on plug-in but I'm expecting something like it'll need INI file as reference or it's queries (data0, data2, data3 and data4) in server configuration.

Re: Overview of GameFort

Posted: 05 Jan 2010, 14:00
by kamelot
quite an interesting read combined with your first part of this. i do have a question though; i assume all the packet related stuff is not relevant for simple client modifications, right? i want to add a few "diffs" to a servers' .bin file but which is the important value? i figured one of the values got to be CRC32 or SHA-1, but the values were of course different.

do you have any information to this (for clarification: yes i am talking about modifying client without openkore)?

Re: Overview of GameFort

Posted: 05 Jan 2010, 14:19
by renjfk
Omoshiroi question, follow these steps in order to solve your problem.

Decrypt your data0 value by using rijndael with universal key (you can find it on previous post) thus you'll obtain second rijndael key. Generate MD5 hash value of your diffed exe and then encrypt it with rijndael by using second key and put it to Exe value in INI file.

Note: rinjdael key length is 32 bytes and 16 bytes block size without using chain block (aka input 16 null values).

Re: Overview of GameFort

Posted: 05 Jan 2010, 18:07
by kamelot
thanks a lot for the helpful response. unfortunately, it seems the .NET implementation of the rijndael cryptography does not support 32 byte key length so i won't be able to work with this :(

do you, by chance, have enough free time to throw together a simple command line app that takes arguments like "rijn.exe decrypt universal_key data_to_decrypt" (same with encrypt)?
i think this would make GameFort servers' client modification very easy, but of course, this is a lot to ask from a random person :P

Re: Overview of GameFort

Posted: 05 Jan 2010, 20:11
by renjfk
Example:
test key; 00112233445566778899AABBCCDDEEFF (128 bit also 16 bytes but written in hex string)
test block size; 16
test data; 00112233445566778899AABBCCDDEEFF (16 bytes but written in hex string)

Re: Overview of GameFort

Posted: 06 Jan 2010, 05:09
by kamelot
unbelievable. it works, thanks so so much!!!
really looking forward to your next "walk-throughs" (even though i may not understand it 100%)! :P

Re: Overview of GameFort

Posted: 07 Jan 2010, 12:37
by joaovictorbinatto
Hello,

I do not understand what I need to do to get through gamefort,
because of my bad English, someone could help me, what steps I
I have to get help

Thank you