![]() |
[hex] variant of party invite fixing
First of all, big thanks to Aspire for his shares on this forum.
And of course thanks to all other devs This party invite fix entirely based on shared information and analysis of linex and zzcat dlls Code of dll (masm32) based on Aspire posted source: Code:
.386Now about place from we will call dll. In my server (C3 PP release) it looks like: Code:
0050F945 3C AA CMP AL,0AA;OpCode checkCode:
0050F945 3C AA CMP AL,0AACode:
006B8B4A E8 7885CFFF CALL patch.003B10C7;here must be exact adress of dlls RecvPacketProc entry point. in your case it may be differentNow i have 1 big problem: client crash on multisell list select (server C3 PP release, client C3 551). May be somebody have some info about multisell packet? |
1) Multisell in HF pack (Aspire's code:P)
2) Entry point wrong selected, return point too, read Aspire's message about that key - that is post CMD - and you need first chain - it's somewhere higher where Getcurrentprocess placed. |
Multisell fix from HF pack designed for C4. Sadly it dont work on 551 client C3 (still crashing). And i dont look for just hex to apply and know nothing about how it work. I mean information about multisell packet assembling process on server side will be more useful.
About entry: where else we can put entry point? And what wrong with my return adress? it exact same adress where "normal" C3 server go. when you say Quote:
Code:
00590492 |. 59 POP ECXbtw with this fix my test server work fine more than 16 hours and still up. |
.005902c7 push (or entry point flag, or free mem, or fill with nop)
.005902c7: call @Entrypoint .005902cc: pop eax @Entrypoint 1)push 'dll name' 2)call LoadlibraryA ; Kernel32 3)test eax,eax 4)jne @exit 5)push -5 6)call ExitProcess; Kernel32 @Exit 7)mov [202f889c],eax 8) retn 9) int 3 |
One question, since I am also learning to do dll injection and working on a dll on the side...if it gets to be pretty good I'll post the source in C++/ASM so people can develop off of it.
My question was, what is the address of the RequestParty function that we are overwriting? I would like to know so I can WriteProcessMemory(). Also, it would help me in debugging things like random party loot. Thanks a lot in advance. I really hope to keep learning. |
main idea must be - hook packet from client with header 29h and return to same point, coz party packet have many parts like erro system, loot manager, smartid manager, party windows..., so to fix objectid we must hook first part of packet, all another maybe not needed, need just correctly return to exe from dll or all another parts will be bypassed.
|
I know random party loot works fine in zzcats dll, just in his the cp, hp, and mp bars are switched (cause he didn't hook one of the party window functions). I believe a fix for that is on the forums, hex fix, and so fixing that should be pretty easy.
I will spend the next few hours here working on my dll code, and I will use your party packet as a base for my party packet. I hope you don't mind ^_^;;. I will just hook it in using loadlibrary at the very end of the exe. I will probably also have to hook the one line you showed, where the pakcet header is compared in the AL register. Anyways, I got an A- in MASM in college, but no classes on reverse engineering L2server.exe unfortunately :P |
Quote:
|
Quote:
also mcrabben7, the party window update blah blah packet for zzcat's dll was changed, but zzcat put the value for the CP at the end of the packet, instead of the beginning, so just changing where the engine.dll reads the CP from the packet is an easy fix for this. |
Quote:
|
Guys, can you share ready *.dll?
|
Zeran just compile it :D leecher
|
| All times are GMT. The time now is 16:26. |