Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 28.04.2005, 19:07   #1
lamnh
Архивный участник
 
Join Date: Mar 2005
Posts: 185
Default C2Server.exe hex

HEX CODE BY ZZCAT

004143DC 83F8 06 cmp eax,6


004143E5 FF2485 50CF5B00 jmp dword ptr ds:[eax*4+5BCF50]

004144C6 68 F8CE5B00 push C2Server.005BCEF8 ; UNICODE "create 1~3 (1=fox, 2=hatchling, 3=strider)"


004144E9 68 F8CE5B00 push C2Server.005BCEF8 ; UNICODE "create 1~3 (1=fox, 2=hatchling, 3=strider)"


0041B14E CC int3
0041B14F 6A 00 push 0
0041B151 8B4F 1C mov ecx,dword ptr ds:[edi+1C]
0041B154 81F9 2E730F00 cmp ecx,0F732E
0041B15A 74 14 je short C2Server.0041B170
0041B15C 81F9 2F730F00 cmp ecx,0F732F
0041B162 74 0C je short C2Server.0041B170
0041B164 81F9 30730F00 cmp ecx,0F7330
0041B16A 74 04 je short C2Server.0041B170
0041B16C 6A 00 push 0
0041B16E EB 02 jmp short C2Server.0041B172
0041B170 6A 01 push 1
0041B172 6A 00 push 0
0041B174 DD86 F8040000 fld qword ptr ds:[esi+4F8]
0041B17A E9 51311300 jmp C2Server.0054E2D0


004245EF CC int3
004245F0 83E8 04 sub eax,4
004245F3 8BC8 mov ecx,eax
004245F5 81C1 2E730F00 add ecx,0F732E
004245FB 51 push ecx
004245FC 05 46110000 add eax,1146
00424601 50 push eax
00424602 8B55 0C mov edx,dword ptr ss:[ebp+C]
00424605 52 push edx
00424606 E8 E5841200 call C2Server.0054CAF0
0042460B 8B4D F4 mov ecx,dword ptr ss:[ebp-C]
0042460E 5F pop edi
0042460F 5E pop esi
00424610 32C0 xor al,al
00424612 64:890D 0000000>mov dword ptr fs:[0],ecx
00424619 5B pop ebx
0042461A 8BE5 mov esp,ebp
0042461C 5D pop ebp
0042461D C3 retn


00424FF7 CC int3
00424FF8 51 push ecx
00424FF9 51 push ecx
00424FFA 6A 00 push 0
00424FFC 68 85000000 push 85
00425001 E9 12311200 jmp C2Server.00548118
00425006 51 push ecx
00425007 51 push ecx
00425008 6A 01 push 1
0042500A 68 85000000 push 85
0042500F E9 416F0700 jmp C2Server.0049BF55
00425014 57 push edi
00425015 57 push edi
00425016 6A 02 push 2
00425018 68 85000000 push 85
0042501D E9 83610D00 jmp C2Server.004FB1A5


00474EDE 90 nop

00474EE7 90 nop

00474EF0 90 nop

00474F02 83C4 14 add esp,14

00474F99 90 nop

00474FA2 90 nop

00474FAB 90 nop

00474FBD 83C4 14 add esp,14


0049BF4D ^ E9 B490F8FF jmp C2Server.00425006
0049BF52 90 nop
0049BF53 90 nop
0049BF54 90 nop
0049BF55 68 60465C00 push C2Server.005C4660 ; ASCII "cddd"


0049BF60 83C4 18 add esp,18


004A954E 68 D0795E00 push C2Server.005E79D0 ; UNICODE "<a action="bypass -h teleport_%d_%d" msg="682">%s - %d "


004FB19D ^ E9 729EF2FF jmp C2Server.00425014
004FB1A2 90 nop
004FB1A3 90 nop
004FB1A4 90 nop
004FB1A5 68 60465C00 push C2Server.005C4660 ; ASCII "cddd"


004FB1B0 83C4 18 add esp,18

00548110 ^ E9 E3CEEDFF jmp C2Server.00424FF8
00548115 90 nop
00548116 90 nop
00548117 90 nop
00548118 68 60465C00 push C2Server.005C4660 ; ASCII "cddd"


00548125 83C4 18 add esp,18


0054E2CA ^ E9 80CEECFF jmp C2Server.0041B14F
0054E2CF 90 nop

0054E4D6 68 00266200 push C2Server.00622600 ; ASCII "cdddddddddddddddddddffffdddcccccSSddddddddddddddd ddddddddddddhc"


0054E4E4 81C4 14010000 add esp,114


Used Ollydbg to change this to C2server.exe . Hope we have more details

THX
lamnh is offline  
Old 28.04.2005, 19:18   #2
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

And... What is that supposed to do?
Livid is offline  
Old 28.04.2005, 19:22   #3
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

i know i know!
and he missed out a couple of stuff. lol
oh well.... nothing really much...
just lemme see..
create_pet, castle siege, teleportor fix, pet fix, pledge fix, and whatever else... oh yes... the cast bar
that's probably the only new thing
Digital is offline  
Old 28.04.2005, 19:27   #4
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

mind explaining this to me (maybe us?)
normal hex are thos dwords, so only pairs of 1-F, so now i gotta know what everything else means, just like
int3
push 0
mov ecx,dword ptr ds:[edi+1C]
pop edi
pop esi
xor al,al
>mov dword ptr fs:[0],ecx
pop ebx
mov esp,ebp
pop ebp
retn
...
any reference sites on this stuff, or can someone give some basic explanations? kthnx
Riane is offline  
Old 28.04.2005, 19:43   #5
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Riane: ASM coding... If you look thru "Working strider" & "//create_pet for wyvern" u will notice same thing there
Digital: I suppose still no //ride Too bad. Really, only new thing is the cast bar. Well, if I wont get it soon, then also siege.

P.S. May be I need just to sleep a little more... Can any1 explain me what each peace mean? Im totally lost with this code...
Livid is offline  
Old 28.04.2005, 20:07   #6
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

Assembler? (googled)
thats a pretty old programming language afaik, so above thats assembler code?

hmmk, now i just need to know how to use it...
i cant just copynpaste that in a hex editor, and when i open the exe, it doesnt look that way either, just hex (guessing, never did yet^^)
Riane is offline  
Old 28.04.2005, 20:18   #7
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

ASM is old as world... ehm... cyberworld But it is a base of basics (lol). And it is possible to copypaste it all... ASM is just decoded hex here, so just copypaste hex & forget abt asm... It is the easy way. The hard way is to understand the code & write same urself
Good luck. If you choose the hard way, you'll need it (lol).
Livid is offline  
Old 28.04.2005, 20:34   #8
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

i was hex the file that post deva c2testserv.exe whit this code(is not hard), i will goig to test if this work or maybe y just to change some lines ^^, because i think the part of the create_pet is not the same .
SoaPy is offline  
Old 28.04.2005, 20:52   #9
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

so livid you say when i open server.exe with a hex editor it looks like this?
and/or i can just paste above IN the hex editor, save and it works?
hmm.....
:s
Riane is offline  
Old 28.04.2005, 21:02   #10
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Ohhh... Example.
We have
0041B14E CC int3
0041B14F 6A 00 push 0
0041B151 8B4F 1C mov ecx,dword ptr ds:[edi+1C]
0041B154 81F9 2E730F00 cmp ecx,0F732E
0041B15A 74 14 je short C2Server.0041B170
0041B15C 81F9 2F730F00 cmp ecx,0F732F

We do
0041B14E CC
0041B14F 6A 00
0041B151 8B4F 1C
0041B154 81F9 2E730F00
0041B15A 74 14
0041B15C 81F9 2F730F00

First number (ex 0041B14E) is addres... substract 00400000 to get "raw" address (offset from the beginning oа the file)
Livid is offline  
Old 28.04.2005, 21:05   #11
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Oh, forgot to mention. As I got into it, create_pet is the same, but it includes also pet skills... well, i'll look more carefully tomorrow. And now I wanna sleep.
Livid is offline  
Old 28.04.2005, 21:30   #12
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

but i think is not the same :

004143DC 83F8 [highlight=red:4c0b4f8601]06[/highlight:4c0b4f8601] cmp eax,6

004143E5 FF2485 50CF5B00 jmp dword ptr ds:[eax*4+5BCF50]

004144C6 68 F8CE5B00 push C2Server.005BCEF8 ; UNICODE "create 1~3 (1=fox, 2=hatchling, 3=strider)"

004144E9 68 F8CE5B00 push C2Server.005BCEF8 ; UNICODE "create 1~3 (1=fox, 2=hatchling, 3=strider

in the red part in create_pet post the code is 07 (8 in game)

1- i have the change all this lines but puting 07 even 6 ???
2- what said "(1=fox, 2=hatchling, 3=strider)" if the 2 and 3 are hatch, 4,5y6 strider and 8 wyv :S, is just a jump or in a part of the code change this.
SoaPy is offline  
Old 29.04.2005, 07:58   #13
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

No wyverns (lol) Thats why 06. So, only create_pet 1~7 work.
(1=fox, 2=hatchling, 3=strider) - & this is just a crap. BTW, u can just move this text somhrere whrer there is some place... & write the right info...
Livid is offline  
Old 29.04.2005, 11:46   #14
nepsquare
Архивный участник
 
Join Date: Apr 2005
Posts: 256
Default

Can anyone tell me which part the castbar code is?

Thanks in advance!
nepsquare is offline  
Old 29.04.2005, 14:25   #15
torrentpimp
Архивный участник
 
Join Date: Mar 2005
Posts: 282
Default

ok I'm totally lost or something mine just crashes hehehehehehe I'll stick to what I know how to do
torrentpimp is offline  
Old 29.04.2005, 16:35   #16
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

oh well for the benefit for all, i'll repost the full copy of it

【共享】原C2SERVER.EXE和ZZCAT的C2SERVER.EXE 对比

希望能对研究SERVER的人有些帮助
红字是ZZCAT改的
====================================
004143DC 83F8 03 cmp eax,3

004143DC 83F8 06 cmp eax,6
===============================
004143E5 FF2485 00454100 jmp dword ptr ds:[eax*4+414500]

004143E5 FF2485 50CF5B00 jmp dword ptr ds:[eax*4+5BCF50]
==============================
004144C6 68 90CF5B00 push C2Server.005BCF90 ; UNICODE "create_pet 1~2 (1=fox, 2=hatchling)"

004144C6 68 F8CE5B00 push C2Server.005BCEF8 ; UNICODE "create 1~3 (1=fox, 2=hatchling, 3=strider)"
================================
004144E9 68 F8CE5B00 push C2Server.005BCEF8 ; UNICODE "bool BuilderCmd_create_pet(CSocket *pSocket, User* pUser, WCHAR* pBuf)"

004144E9 68 F8CE5B00 push C2Server.005BCEF8 ; UNICODE "create 1~3 (1=fox, 2=hatchling, 3=strider)"
=================================================
0041B14E 8B45 E4 mov eax,dword ptr ss:[ebp-1C]
0041B151 68 3C336700 push C2Server.0067333C
0041B156 8D4D EC lea ecx,dword ptr ss:[ebp-14]
0041B159 51 push ecx
0041B15A 8945 EC mov dword ptr ss:[ebp-14],eax
0041B15D E8 78111700 call C2Server.0058C2DA
0041B162 68 78FC5B00 push C2Server.005BFC78 ; UNICODE "bool BuilderCmd_addcomment(CSocket *pSocket, User* pUser, WCHAR* pBuf)"
0041B167 E8 44E10500 call C2Server.004792B0
0041B16C 83C4 04 add esp,4
0041B16F 33DB xor ebx,ebx
0041B171 53 push ebx
0041B172 53 push ebx
0041B173 E8 62111700 call C2Server.0058C2DA
0041B178 CC int3
0041B179 90 nop
0041B17A 90 nop
0041B17B 90 nop
0041B17C 90 nop
0041B17D 90 nop
0041B17E 90 nop

0041B14E CC int3
0041B14F 6A 00 push 0
0041B151 8B4F 1C mov ecx,dword ptr ds:[edi+1C]
0041B154 81F9 2E730F00 cmp ecx,0F732E
0041B15A 74 14 je short C2Server.0041B170
0041B15C 81F9 2F730F00 cmp ecx,0F732F
0041B162 74 0C je short C2Server.0041B170
0041B164 81F9 30730F00 cmp ecx,0F7330
0041B16A 74 04 je short C2Server.0041B170
0041B16C 6A 00 push 0
0041B16E EB 02 jmp short C2Server.0041B172
0041B170 6A 01 push 1
0041B172 6A 00 push 0
0041B174 DD86 F8040000 fld qword ptr ds:[esi+4F8]
0041B17A E9 51311300 jmp C2Server.0054E2D0
==========================================
004245EF 8B4D E0 mov ecx,dword ptr ss:[ebp-20]
004245F2 68 3C336700 push C2Server.0067333C
004245F7 8D55 E4 lea edx,dword ptr ss:[ebp-1C]
004245FA 52 push edx
004245FB 894D E4 mov dword ptr ss:[ebp-1C],ecx
004245FE E8 D77C1600 call C2Server.0058C2DA
00424603 68 E01F5C00 push C2Server.005C1FE0 ; UNICODE "bool BuilderCmd_add_petition_chat(CSocket *pSocket, User* pUser, WCHAR* pBuf)"
00424608 E8 A34C0500 call C2Server.004792B0
0042460D 83C4 04 add esp,4
00424610 33DB xor ebx,ebx
00424612 53 push ebx
00424613 53 push ebx
00424614 E8 C17C1600 call C2Server.0058C2DA
00424619 CC int3
0042461A 90 nop
0042461B 90 nop
0042461C 90 nop
0042461D 90 nop

004245EF CC int3
004245F0 83E8 04 sub eax,4
004245F3 8BC8 mov ecx,eax
004245F5 81C1 2E730F00 add ecx,0F732E
004245FB 51 push ecx
004245FC 05 46110000 add eax,1146
00424601 50 push eax
00424602 8B55 0C mov edx,dword ptr ss:[ebp+C]
00424605 52 push edx
00424606 E8 E5841200 call C2Server.0054CAF0
0042460B 8B4D F4 mov ecx,dword ptr ss:[ebp-C]
0042460E 5F pop edi
0042460F 5E pop esi
00424610 32C0 xor al,al
00424612 64:890D 0000000>mov dword ptr fs:[0],ecx
00424619 5B pop ebx
0042461A 8BE5 mov esp,ebp
0042461C 5D pop ebp
0042461D C3 retn
==========================================
00424FF7 8B4D E0 mov ecx,dword ptr ss:[ebp-20]
00424FFA 68 3C336700 push C2Server.0067333C
00424FFF 8D55 E4 lea edx,dword ptr ss:[ebp-1C]
00425002 52 push edx
00425003 894D E4 mov dword ptr ss:[ebp-1C],ecx
00425006 E8 CF721600 call C2Server.0058C2DA
0042500B 68 70255C00 push C2Server.005C2570 ; UNICODE "bool BuilderCmd_unregister(CSocket *pSocket, User* pUser, WCHAR* pBuf)"
00425010 E8 9B420500 call C2Server.004792B0
00425015 83C4 04 add esp,4
00425018 6A 00 push 0
0042501A 6A 00 push 0
0042501C E8 B9721600 call C2Server.0058C2DA
00425021 CC int3

00424FF7 CC int3
00424FF8 51 push ecx
00424FF9 51 push ecx
00424FFA 6A 00 push 0
00424FFC 68 85000000 push 85
00425001 E9 12311200 jmp C2Server.00548118
00425006 51 push ecx
00425007 51 push ecx
00425008 6A 01 push 1
0042500A 68 85000000 push 85
0042500F E9 416F0700 jmp C2Server.0049BF55
00425014 57 push edi
00425015 57 push edi
00425016 6A 02 push 2
00425018 68 85000000 push 85
0042501D E9 83610D00 jmp C2Server.004FB1A5
=========================================
00474EDE 50 push eax

00474EDE 90 nop
==========================================
00474EE7 50 push eax

00474EE7 90 nop
==================================
00474EF0 50 push eax

00474EF0 90 nop
==================================
00474F02 83C4 20 add esp,20

00474F02 83C4 14 add esp,14
==================================
00474F99 50 push eax

00474F99 90 nop
=================================
00474FA2 50 push eax

00474FA2 90 nop
===================================
00474FAB 50 push eax

00474FAB 90 nop
======================================
00474FBD 83C4 20 add esp,20

00474FBD 83C4 14 add esp,14
========================================
0049BF4D 51 push ecx
0049BF4E 6A 01 push 1
0049BF50 68 85000000 push 85
0049BF55 68 84645B00 push C2Server.005B6484 ; ASCII "cdd"

0049BF4D ^ E9 B490F8FF jmp C2Server.00425006
0049BF52 90 nop
0049BF53 90 nop
0049BF54 90 nop
0049BF55 68 60465C00 push C2Server.005C4660 ; ASCII "cddd"
=======================================
0049BF60 83C4 14 add esp,14

0049BF60 83C4 18 add esp,18
=====================================
004A954E 68 D0795E00 push C2Server.005E79D0 ; UNICODE "<a action="bypass -h teleport_%d_%d" msg="682">%s - %d &$469; </a>"

004A954E 68 D0795E00 push C2Server.005E79D0 ; UNICODE "<a action="bypass -h teleport_%d_%d" msg="682">%s - %d "
==========================================
004FB19D 57 push edi
004FB19E 6A 02 push 2
004FB1A0 68 85000000 push 85
004FB1A5 68 84645B00 push C2Server.005B6484 ; ASCII "cdd"

004FB19D ^ E9 729EF2FF jmp C2Server.00425014
004FB1A2 90 nop
004FB1A3 90 nop
004FB1A4 90 nop
004FB1A5 68 60465C00 push C2Server.005C4660 ; ASCII "cddd"
======================================
004FB1B0 83C4 14 add esp,14

004FB1B0 83C4 18 add esp,18
=====================================
00548110 51 push ecx
00548111 6A 00 push 0
00548113 68 85000000 push 85
00548118 68 84645B00 push C2Server.005B6484 ; ASCII "cdd"

00548110 ^ E9 E3CEEDFF jmp C2Server.00424FF8
00548115 90 nop
00548116 90 nop
00548117 90 nop
00548118 68 60465C00 push C2Server.005C4660 ; ASCII "cddd"
========================================
00548125 83C4 14 add esp,14

00548125 83C4 18 add esp,18
=======================================
0054E2CA DD86 F8040000 fld qword ptr ds:[esi+4F8]

0054E2CA ^ E9 80CEECFF jmp C2Server.0041B14F
0054E2CF 90 nop
======================================
0054E4D6 68 00266200 push C2Server.00622600 ; ASCII "cdddddddddddddddddddffffdddcccccSSddddddddddddddd ddddddddddd"

0054E4D6 68 00266200 push C2Server.00622600 ; ASCII "cdddddddddddddddddddffffdddcccccSSddddddddddddddd ddddddddddddhc"
===========================
0054E4E4 81C4 08010000 add esp,108

0054E4E4 81C4 14010000 add esp,114
========================
Digital is offline  
Old 02.05.2005, 11:50   #17
mastery
Архивный участник
 
Join Date: Feb 2005
Posts: 159
Default

is it more simple to attach hexed exe? isnt it? )
mastery is offline  
Old 02.05.2005, 12:36   #18
nepsquare
Архивный участник
 
Join Date: Apr 2005
Posts: 256
Default

Nah, that wouldn't inspire anybody to mod anything themselves... And if that wouldn't happen, there would be no community, would there?

I was a total noob in this (maybe still am), but in 3-4 weeks I got into modding again though hexing and editing scripts. I also learnt quite a bit about mssql... Very soon I can contribute myself maybe.

Point being: It's better to point someone in the right direction so he/she can develop, than to simply give someone a shortcut to thinking in form of an attachment...

Mind you I enjoy attached solutions as well as anybody, but I like to know how things work.
nepsquare is offline  
Old 02.05.2005, 13:56   #19
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

Quote:
Originally Posted by nepsquare
Nah, that wouldn't inspire anybody to mod anything themselves... And if that wouldn't happen, there would be no community, would there?

I was a total noob in this (maybe still am), but in 3-4 weeks I got into modding again though hexing and editing scripts. I also learnt quite a bit about mssql... Very soon I can contribute myself maybe.

Point being: It's better to point someone in the right direction so he/she can develop, than to simply give someone a shortcut to thinking in form of an attachment...

Mind you I enjoy attached solutions as well as anybody, but I like to know how things work.

so true.
thats why ragezone sux nowadays
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 15:09.