Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   C3 client modding (https://postpacific.loc-online.com/showthread.php?t=479)

Digital 23.04.2005 15:30

C3 client modding
 
thx to lichenkuo

Code:

RT。
(这段时间在找工作,没能常来,没回的帖子见谅)
经过多次的重起,终于找到了加密的地方。(准备IDA Pro,softIce等工具)
先说一下原理:
s-->c  (接收的第一个封包)
00 id ver rsa-key
1 4  4  128 
(它采用的是rsa-1024算法,是1024位不是128位的。)
c-->s  (发送的第一个封包)
blowfish-encrypted-msg
  144
BlowFish用新的key,key = "_;5.]94-31==-%xT!^[$\000";
解开后,封包结构如下:
00 rsa-encrypted-msg align checksum
1    128    7  8
其中rsa-encrypted-msg就是对用户名和密码做的rsa-1024加密。
加密函数在l2.exe里,用IDA反汇编后找rsapub函数,Blowfish的加解密函数
放到了core.dll 里了,而network.dll已经被废弃了,它里面的一些函数被放到
Engine.dl里了(我曾经在network.dll里苦苦搜索N天,彻夜不眠,后来有一天
突然发现l2.exe根本就没用到它,差点没把我气晕,差点就不想再搞它了,一句话
TMD太累了 [s:11] )。
现在大陆版的就是这样一个框架,LoginServer的版本号是40916(0x00009fd4),
GameSever的版本号是420(0x000001a4)。
经过测试LoginServer可以正常登录。登录时你会发现LoginServer发过来的
封包都是明文的。但客户端发送的封包还是需要经过BlowFish加密的,用的是
新key。新key是这样找到的:
用IDA Pro打开Engine.dll文件,找到输入函数FBlowFish::InitializeBlowFish引用的
地方,有两个0x103E1719,0x103E189E,key就在他们前面一行,
103E1707:  cmp  eax , 9FD4h  ;比较版本号 40916
103E170C:  push  15h    ;key的长度压入栈
103E170E:  jge  loc_103E1899 ;版本大于等于40916就跳转
103E1714:  push  offset a_9431@ ; "[;'.]94-31==-%&@!^+]" 〈==旧key*****
103E1719:  call  ds:?InitializeBlowfish@FBlowFish@@QAEFQAEF@Z
            ; FBlowFish::InitializeBlowfish(uchar * const,short)
...

103E1899  loc_103E1899:        ; CODE XREF: 103E170Ej
103E1899  push  offset a_5_9431Xt ; "_;5.]94-31==-%xT!^[$" 〈==新key****
103E189E  call  ds:?InitializeBlowfish@FBlowFish@@QAEFQAEF@Z
            ; FBlowFish::InitializeBlowfish(uchar * const,short)

想自己跟踪的需要作如下几步:
1,生成L2.exe,Engine.dll,Core.dll的nsm文件,并在SoftIce Loader 里加载进去。
2,先启动SoftIce,再启动L2.exe,并在登录窗口停下来(输入好用户名和密码)。
3,呼出SoftIce对rsapub,send,FBlowFish::BloeFishEncrypt下断点(也可以只
设rsapub一个断点)。
4,回到L2.exe程序的登录窗口,点击登录就可以跟进去了!


Digital 23.04.2005 15:33

some pictures by zzcat :)
really lovely, look at those weapon glows, ingame msn, etc :D

http://download.wztt.com/bbs/Lin2v3/Lin2v3001.JPG
http://download.wztt.com/bbs/Lin2v3/Lin2v3003.JPG
http://download.wztt.com/bbs/Lin2v3/Lin2v3004.JPG
http://download.wztt.com/bbs/Lin2v3/Lin2v3005.JPG
http://download.wztt.com/bbs/Lin2v3/Lin2v3006.JPG
http://download.wztt.com/bbs/Lin2v3/Lin2v3007.JPG

Riane 23.04.2005 17:24

really nice pics, but again since we're not chinese, is this modding a c3 client for a private server?
or is this the c2 client modded in the new features?


ps:
I PRAY TO GOT THAT THE C3 FILES ARE BEING LEAKED!!!!1one
or you guys make a _really_ working mod for it ;D

flakka 23.04.2005 17:24

:shock: Holy....

hamidouch 23.04.2005 18:36

obviously it's c3 modded to connect to c2
omfg
im trying to do that for 2 weeks :(

flakka 23.04.2005 18:55

Correct me if I'm wrong, but doesn't the emulator use the BlowFish engine? Or does the OFF server use it too?

torrentpimp 23.04.2005 20:39

ok please tell me that when this is translated it has the instructions to get c3 to connect otherwise please stop teasing me!

flakka 23.04.2005 21:04

LOL! :laughing3:

theRAGE 23.04.2005 23:45

mmm... I'm pretty sure its the C3 client on the L2J C2 server... seeing as how they are riding striders and wyverns...

Metalmurphy 24.04.2005 00:49

I doubt its l2j. look at the last pic. its showing the mob skills/buffs in the target bar. L2J doenst have that.

Riane 24.04.2005 00:56

it could be client side

flakka 24.04.2005 05:06

Almost positive it is. The BlowFish engine is from the emulator, and I can't find any info about the official server having it. If they've gotten that far with L2J, then I must admit that they've got their work cut out for them. :?

Digital 24.04.2005 05:32

well... havent got time to translated it yet...
will do when i get home... or finish my assignment :|

as far as i know right now, (havent really read the post yet)
no changes to the client.
need to edit l2server to handle the rsa login packet from the client
and that's basically it. c3 client connecting to c2 server

oh yes.. and of cuz... this standard bit requires changing.
LoginServer的版本号是40916(0x00009fd4),
GameSever的版本号是420(0x000001a4)

Metalmurphy 24.04.2005 12:13

Well thats not what it says in his server webpage. To connect to his server you gotta download C2 client and apply a 600MB patch.

hamidouch 24.04.2005 13:33

600MB is enough to add all c3 files from c3 client to a c2 client

Shinare 24.04.2005 13:40

so how, it would be awesome to connect with c3 client to c2 server oO

torrentpimp 24.04.2005 13:41

hmmmm i already have a 450mb patch with every c3 thing i could load without crashing mine doesn't do that....gotta be something else.

hamidouch 24.04.2005 16:19

lol same ^^
got to load l2.exe, core.*, engine.*, and other ones that cant be loaded without crashing :/

Shinare 24.04.2005 16:25

argh , digital tell us how get this workin :P

Metalmurphy 25.04.2005 12:17

Like he knew. Those screenshos are from chinese server that might, or might not be l2j

Dubie 25.04.2005 20:46

Is this the same glow as we see in the picture here in this post?
https://postpacific.loc-online.com/f...opic.php?t=375

Just want to make sure before doing all that for something different then we thought it was. lmao

thanks for your time,
Dubie

hamidouch 25.04.2005 22:31

Absolutely..................not

Digital 26.04.2005 03:29

LOL

oh well here we go, 1 way of getting into c3 client... (getting into only :p)
1) get 412 decryptor tool, firstly use patcher.exe, decrypt l2.ini and change the ip and encrypt it back.
2) IMPT STEP LOOK PROPERLY:
running l2.exe does not work.
u have to use loader.exe to enter the game.
3) C3 key is: [;'.]94-31==-%&@!^+]
hex it into AuthD.exe, address is 0006C6B0

have fun with the in-games errors n d/c tho. ROFL

Digital 26.04.2005 04:05

solution to hanging c3 client

find
a465134799cf2c45087093e7d0f0f144e6d528110c08f67473 0d436e40827330eccea46e70acf10cdda7d8f710e3b44dcca9 31812d76cd7494289bca8b73823f57efc0515b97e4a2a02612 ccfa719cf7885104b06f2e7e2cc967b62e3d3b1aadb925db94 cbc8cd3070a4bb13f7e202c7733a67b1b94c1ebc0afcbe1a63 b448cf
.......00000025

and change it to
75b4d6de5c016544068a1acf125869f43d2e09fc55b8b1e289 556daf9b8757635593446288b3653da1ce91c87bb1a5c18f16 323495c55d7d72c0890a83f69bfd1fd9434eb1c02f3e4679ed fa43309319070129c267c85604d87bb65bae205de3707af1d2 108881abb567c3b3d069ae67c3a4c6a3aa93d26413d4c66094 ae2039
........0000001d...

and ur done! :)
here for file...not sure if it even works... lol

hamidouch 26.04.2005 13:26

awesome
but those 2 tactics are different?
can u explain what second solution do?
and what about crashes? is it crashes like when u touch water or afiliated?

Digital 26.04.2005 14:03

oh.. those 2 goes together.. lol
this is just one of the easier solution...
the harder ones... is... just too hard. lol
i wun go into that one too deep tho... but this is the more popular step by far.

hamidouch 26.04.2005 15:19

ok, awesome digit,
i understand first part about hexing auth server
but i dont understand second part ...........

and can you precise since u prolly tested it :
is it crashing a lot, or only on special events, like touching water, summoning pet, clicking new c3 buttons....
and are c3 functions like the new party display, c3 skills, c3 anims, glow etc....displayed correctly on a c2project server?

Digital 26.04.2005 15:46

hmm.. d/c everytime u move to a map. that's for sure..
and other random d/c... lol... it's gonna be tough.

hamidouch 26.04.2005 16:06

erf yep :/
crap
i wonder if it can be fixed,
gonna test that

jeromn kim 27.04.2005 15:11

i would tested like above that
i passed auth but, l2server message "protocol version is different"
i think modify the l2server.

i was test by project c2 beta3(l2server 483). and c3 korean client(0426 ver.)
authserver is 411(hex edit c3 key) and l2.exe is downloading digital's

and c3 0426 client's engine.dll is different address(old key & new key) but, key name is same.

Digital 27.04.2005 15:37

epp... 0426 already?
gameserver gotta to be hex to 426 insted of 420 then

jeromn kim 27.04.2005 15:53

oops~!! yes, 0426 already -.-

Digital 29.04.2005 05:45

well... so far 2 methods of going in...
by changing authd
OR
by changing engine

files here.
authd0429
engine

flakka 29.04.2005 06:37

Sweet! :D

But I don't feel like downloading the C3 client again, rofl. I guess this solves the issue with being able to log in with a C3 client when NCSoft updates the client downloads! Woot! :cheers:

Digital 29.04.2005 06:41

lol.. c3 is mainly for testing only
it's toooooooooooooooooooooooooooooooooooooooooo
buggy to be used as an actual server. lol

flakka 29.04.2005 07:36

Yeah. I actually ran it with my C2 client to see what would happen and I got a bunch of giant rabbits, lol. I don't know why that would happen when the issue was totally unrealted though, haha. :lol:

jeromn kim 29.04.2005 11:04

oh~~ well.... i thanx to u!! :lol:

hamidouch 29.04.2005 11:20

auth serv 0429 is out

torrentpimp 29.04.2005 14:16

can't seem to sign up at the page (for the 5th time......grumble grumble)

Anyways anyone got a link and I'll host them on a nice english site ;)

Digital 04.05.2005 15:14

some info on c3 problems

给你整理一下3章的BUG吧,
1、解决克服的问题是登入的时候发生� ��问题
2、解决血盟的问题
3、解决组队的问题
4、解决商店出售乱78糟的问题
5、解决角色、其他人、宠物、NPC的问� ��
6、暂时还没找到
注:你要想在3章骑龙还需要在解决一� ��骑龙的问题,现在3章连官方骑龙都有� ��题- -0
呵呵~


All times are GMT. The time now is 16:23.