Re: [Guide][Release?]Protocol / Encryption library.
Yes... it is essentially exactly that. Rip out the "implants" created by the original GFantasy team from their added sections (which LordPE made something of a mess of) and place that code in a DLL which you can add an import for, or delay load with LoadLibrary() and include in the memory from a modular, easily changeable file.
Because I provide the source (even as x86 assembler) you can create a completely new protocol / encryption with it, or modify it so that it reads the XOR "key" from an external file, or embedded resource in the DLL or WHY.
I'm sure some people can convert it to C(++), Pascal or Basic. But if I attempted that, my result would be something not much better than a commented cross-compile / cross-assemble.
1 Attachment(s)
Re: [Guide][Release?]Protocol / Encryption library.
Quote:
Originally Posted by
bobsobol
[...]
I'm sure some people can convert it to C[...]
Here you go:
http://forum.ragezone.com/attachment...1&d=1303320961
Use Dev-C++ to compile (as C code)
Ignore:
[Warning] use of cast expressions as lvalues is deprecated
For me it make no sense, variables holds values that I don't understand.
C or assembly it will do same thing and work same way and make as much sense as non.
PS. This is kPT protocol, I called them cryption1, 2, 3, 4 (client have 3 protocols, server have 4)
Re: [Guide][Release?]Protocol / Encryption library.
I was told the server had 4, but when I looked, the server had 2 entry points to the same routine... so 4 calls to 3 protocol routines.
Some are intermixed on the same packet.
The Assembler I ripped and commented as well as I could was also from KPT... so effectively, these DLLs should be inter-changeable, and have no effect on the server at all. (except that the export names don't match, and we can't count on the ordinals either, but that's an easy fix, either in source or the server PE)
Thanks a million for that. I'm sure it will be very useful to many people for different people.
I'm certainly going to have a good look at it.
Re: [Guide][Release?]Protocol / Encryption library.
CLIENT 1.98.9
0044E513 call cryption1 (was call sub_44DB30)
0056823A call cryption2 (was call sub_44DBC0)
0044E456 call cryption3 (was call sub_44DC70)
SERVER 4096
00451FC3 cryption1 (was call sub_4513E0)
0056F45A cryption2 (was call sub_451470)
0058848A cryption2 (was call sub_451470)
00451F06 cryption3 (was call sub_451500)
0056F47E cryption4 (was call sub_4515A0)
I numbered them in order they are in server/client (from top to bottom).
diff is here:
Code:
cryption3 in client (line 144):
v8 = a5 ^ v14;
cryption3 in server (line 144):
v8 = a5 ^ v14 ^ 0xED;
and ofc not existing cryption4 in client.
For example PRE AOR client have only 2 protocols and this might be the reason why modern server and PRE AOR client does not understand each other.
__EDIT__
version 2.0.0 have all 3... this one might be better candidate.
__EDIT__2
no diff... but old maps are cool :)
http://oi55.tinypic.com/2uxv815.jpg
Re: [Guide][Release?]Protocol / Encryption library.
All very odd.
I'm sure the parameters should include StartAddress, Length/End, but I'm not sure what else.
XOR encryption and decryption is usually reversible with the same algorithm, but if there is any bit shifting, it should be reversed in the opposite order, or with pre-shifted XOR.
Anyway... I'm deffo looking into this. Is 1.98.9 the current KPT Test client? Or do you have a link you can share. I should check the x86 to have a better chance of spotting it and labelling up in other clients. :D
---EDIT---
Just checked... No we're up to 1.99.8 now. :$: how time flies when you're having fun. :wink:
So yea... a link to Game.exe v1.98.9 or a Diff/BinPatch against v1.99.0 or v1.98.4 (my closest version numbers) would be ace. :thumbup1:
Re: [Guide][Release?]Protocol / Encryption library.
Can someone give me a pre-aor client? Id like to make my emu with them.
Re: [Guide][Release?]Protocol / Encryption library.
@bobsobol
Multiupload.com - upload your files to multiple file hosting sites!
Its not newest client, not planing to move to any other version because they did not add anything that interesting yet.
Ignore additional maps inside those are pre morion maps converted to new space.
most of time cryption2 and cryption3 is used but its strange that cryption is reversed by adding ^ 0xED; only O.o
__EDIT__
Forgot about clean game.exe =P
Multiupload.com - upload your files to multiple file hosting sites!
__END_OF_EDIT__
@SheenBR
here is pre aor (not pre morion) version 2.0.0
Gamefront
FilePlanet: Priston Tale English Client v2.00.0
I can't find link to post where bobsobol uploaded 1.66 (pre morion).
I have it on HD if you need.
Re: [Guide][Release?]Protocol / Encryption library.
Id like the oldest you have arroud there, btw, downloading it, ty.
Is this the game with that HP BAR,STM BAR in the top?
Re: [Guide][Release?]Protocol / Encryption library.
@Sheen: You should probably refer to this post and this thread both of which are complete floods of downloads for PreAOR / Pre-Morian stuffs.
Be warned most of it is incomplete, tries to connect of GG/nP servers that don't exist any more and needs considerable fixing up.
Hence the continual flood of various peoples fixes and mergers. :wink:
@Vormav: Yes, the original KPT release is all I'm particularly interested in. I can't analyse changes if I don't have the original.
Should really keep a "game.exe" archive thread open that people can post ALL game.exe for any language and version... if it's clean. ^_^
---EDIT---
Bugger, XTrap is already cleaned. :'( Oh well.
Re: [Guide][Release?]Protocol / Encryption library.
do I need a "special" client full? I finished downloading that one vormav sent to me.
Re: [Guide][Release?]Protocol / Encryption library.
Quote:
Originally Posted by
bobsobol
Be warned most of it is incomplete, tries to connect of GG/nP servers that don't exist any more and needs considerable fixing up.
When I was testing 2.0.0 today I found quick way to fix it... delete all dlls except handes.dll and change
jnz 0040A5E3 to JMP 0040A5E3
also change all
push 80000002 to push 80000001
(similar fix should work on 1.66 but diff addresses ofc)
For quick window mode use admin hotuk.ini
Alternative link to 1753 (pre morion)
MEGAUPLOAD - The leading online storage and file delivery service
PS. clients lower than 2.0.0 have bar on top.
Re: [Guide][Release?]Protocol / Encryption library.
The 1.6 installer has corrupt .cab files. I dunno how to extract files from them.
I have version v1753 which installs perfect, however I am not sure if it has the ancient gui with the bars up the top.
Re: [Guide][Release?]Protocol / Encryption library.
@sungam3d
You will need
Universal Extractor
UniExtract to subdir
than extract data1.cab to subdir
Quote:
Originally Posted by
bobsobol
Bugger, XTrap is already cleaned. :'( Oh well.
Funny thing is that this version run Xtrap only if folder exist, but I could be wrong, I have it for some time now.
__EDIT__
Tested and yes I was right... Its clean... it will run Xtrap only if Xtrap files exist :) funny release... maybe thats why I saved it? =P
Re: [Guide][Release?]Protocol / Encryption library.
Also note that it is *NOT* a Windows .cab file, but an Install Shield .cab file.
You need to use Unshield from www.synce.org to extract (what remains) from it. :(:
I did warn that it is incomplete. :wink:
@Vormav: Very funny indeed. :$:
1 Attachment(s)
Re: [Guide][Release?]Protocol / Encryption library.
And UniExtract is using Install Shield.
Its amusing that kPT 1.89.9 have Xtrap like that... but is the fact.
But funnier think is that PT 2.0.0 have all 3 protocols same as server protocol, otherwise it will not connect.
C version of it...
http://forum.ragezone.com/attachment...1&d=1303411400
CLIENT 2.0.0
0042E603 cryption1 (was call sub_42DC40)
004D0BFD cryption2 (was call sub_42DCD0)
0042E546 cryption3 (was call sub_42DD60)
Nvm cryption4... it can be anything at this point because I can't run PT 2.0.0 without DC as you seen on picture above.