Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 23.04.2005, 15:30   #1
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default 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 is offline  
Old 23.04.2005, 15:33   #2
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

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






Digital is offline  
Old 23.04.2005, 17:24   #3
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

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
Riane is offline  
Old 23.04.2005, 17:24   #4
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

:shock: Holy....
flakka is offline  
Old 23.04.2005, 18:36   #5
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

obviously it's c3 modded to connect to c2
omfg
im trying to do that for 2 weeks
hamidouch is offline  
Old 23.04.2005, 18:55   #6
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Correct me if I'm wrong, but doesn't the emulator use the BlowFish engine? Or does the OFF server use it too?
flakka is offline  
Old 23.04.2005, 20:39   #7
torrentpimp
Архивный участник
 
Join Date: Mar 2005
Posts: 282
Default

ok please tell me that when this is translated it has the instructions to get c3 to connect otherwise please stop teasing me!
torrentpimp is offline  
Old 23.04.2005, 21:04   #8
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

LOL! :laughing3:
flakka is offline  
Old 23.04.2005, 23:45   #9
theRAGE
Архивный участник
 
Join Date: Feb 2005
Posts: 82
Default

mmm... I'm pretty sure its the C3 client on the L2J C2 server... seeing as how they are riding striders and wyverns...
theRAGE is offline  
Old 24.04.2005, 00:49   #10
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

I doubt its l2j. look at the last pic. its showing the mob skills/buffs in the target bar. L2J doenst have that.
Metalmurphy is offline  
Old 24.04.2005, 00:56   #11
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

it could be client side
Riane is offline  
Old 24.04.2005, 05:06   #12
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

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. :?
flakka is offline  
Old 24.04.2005, 05:32   #13
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

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)
Digital is offline  
Old 24.04.2005, 12:13   #14
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

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.
Metalmurphy is offline  
Old 24.04.2005, 13:33   #15
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

600MB is enough to add all c3 files from c3 client to a c2 client
hamidouch is offline  
Old 24.04.2005, 13:40   #16
Shinare
Архивный участник
 
Join Date: Apr 2005
Posts: 104
Default

so how, it would be awesome to connect with c3 client to c2 server oO
Shinare is offline  
Old 24.04.2005, 13:41   #17
torrentpimp
Архивный участник
 
Join Date: Mar 2005
Posts: 282
Default

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.
torrentpimp is offline  
Old 24.04.2005, 16:19   #18
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

lol same ^^
got to load l2.exe, core.*, engine.*, and other ones that cant be loaded without crashing :/
hamidouch is offline  
Old 24.04.2005, 16:25   #19
Shinare
Архивный участник
 
Join Date: Apr 2005
Posts: 104
Default

argh , digital tell us how get this workin :P
Shinare is offline  
Old 25.04.2005, 12:17   #20
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

Like he knew. Those screenshos are from chinese server that might, or might not be l2j
Metalmurphy is offline  
Old 25.04.2005, 20:46   #21
Dubie
Архивный участник
 
Join Date: Mar 2005
Posts: 133
Default

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
Dubie is offline  
Old 25.04.2005, 22:31   #22
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

Absolutely..................not
hamidouch is offline  
Old 26.04.2005, 03:29   #23
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

LOL

oh well here we go, 1 way of getting into c3 client... (getting into only )
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 is offline  
Old 26.04.2005, 04:05   #24
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

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
Digital is offline  
Old 26.04.2005, 13:26   #25
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

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?
hamidouch is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:09.