![]() |
|
|
#1 |
|
Архивный участник
Join Date: Jun 2005
Posts: 262
|
thx to ezme
this is a demo,personally i've fixed c4 bug. perfect tattoo, wedding, recommend, big head, etc. all functioning exactly as official. strict case, expliot avoidance, as well as providing very fine patching tool, allowing u to make se. these things, i'll soon release it, together with login system, totally free, without and restriction. everything is written 100% win32 asm, though not the best but better then those who sold for cash... thanks all who supports me ;PacketFormat cd objectID .const szCSMTargetError db 'Recommend target error!',0 szCSMTargetIsMyself db 'Cant recommend myself!',0 szCSMLevelLessThan10 db 'Your level is too low, unable to recommend others!',0 szCSMNoRecommTicket db 'Your vote is used, unable to vote again!',0 szCSMTargetRecommFull db 'Target vote limit reached!',0 szRecommToSomeBody db 'You voted for %S,%d remaining!',0 szRecommedBySomeBody db 'You have been recommended by %S , current level at %d !',0 .code ReqEvaluate proc uses ebx esi edi,_lpPacket,\ _lpstUserObject,_hClientObject local @dwObjectID:dword local @dwMyObjectID:dword local @lpstTargetUserObject:dword local @lpstUserInfo:dword local @lpstUserInfoEx:dword local @lpstTargetUserInfo:dword local @lpstTargetUserInfoEx:dword local @dwIsCreature:dword local @dwLevel:dword local @dwRecommRecv:dword local @dwRecommLeft:dword local @lpszBuffer:dword mov ebx,_lpPacket mov eax,dword ptr [ebx + sizeof byte] mov @dwObjectID,eax ;capture client thread target transaction details mov ebx,_lpstUserObject lea ecx,dword ptr [ebx + OFFSET_USEROBJECT_PEAR_OBJECTID] mov eax,dword ptr [ecx] mov @dwMyObjectID,eax mov eax,FUNC_GetCreatureObject call eax mov @lpstTargetUserObject,eax ;check target is not self mov ebx,@lpstTargetUserObject mov eax,dword ptr [ebx] mov ecx,ebx call dword ptr [eax + OFFSET_USEROBJECT_FUNC_OBJTYPE] movzx eax,al mov @dwIsCreature,eax mov ecx,@dwMyObjectID .if @dwIsCreature != 1 ;make sure target is not self invoke SystemMsg,_hClientObject,offset szCSMTargetError .elseif ecx == @dwObjectID invoke SystemMsg,_hClientObject,offset szCSMTargetIsMyself .else mov ebx,_lpstUserObject mov ebx,dword ptr [ebx + OFFSET_USEROBJECT_USERINFO] mov @lpstUserInfo,ebx mov eax,dword ptr [ebx + OFFSET_USERINFO_STRUCTEX] mov @lpstUserInfoEx,eax mov eax,dword ptr [ebx + OFFSET_USERINFO_LEVEL] mov @dwLevel,eax mov ebx,@lpstUserInfoEx assume ebx tr UserInfoExmov eax,[ebx].RecommLeft mov @dwRecommLeft,eax assume ebx:nothing .if @dwLevel < 10 invoke SystemMsg,_hClientObject,offset szCSMLevelLessThan10 .elseif @dwRecommLeft <=0 invoke SystemMsg,_hClientObject,offset szCSMNoRecommTicket .else mov ebx,@lpstTargetUserObject mov eax,dword ptr [ebx + OFFSET_USEROBJECT_USERINFO] mov @lpstTargetUserInfo,eax invoke GetUserInfoEx,@lpstTargetUserObject mov @lpstTargetUserInfoEx,eax assume eax tr UserInfoExmov ecx,[eax].RecommRecv assume eax:nothing .if ecx >= 255 invoke SystemMsg,_hClientObject,offset szCSMTargetRecommFull .else ;edit database ;edit transaction details mov ebx,@lpstUserInfoEx assume ebx tr UserInfoExdec [ebx].RecommLeft mov eax,[ebx].RecommLeft mov @dwRecommLeft,eax mov ebx,@lpstTargetUserInfoEx inc [ebx].RecommRecv mov eax,[ebx].RecommRecv mov @dwRecommRecv,eax assume ebx:nothing ;notify voter regarding system message invoke GlobalAlloc,GMEM_FIXED or GMEM_ZEROINIT, 200h mov @lpszBuffer,eax mov ebx,@lpstTargetUserInfo lea esi,dword ptr [ebx + OFFSET_USERINFO_NAME] ;target name invoke wsprintf,@lpszBuffer,offset szRecommToSomeBody,\ esi,@dwRecommLeft invoke SystemMsg,_hClientObject,@lpszBuffer ;update UserInfo invoke SendUserInfo,_lpstUserObject ;notify voted regarding system message mov ebx,@lpstTargetUserObject mov edi,dword ptr [ebx + OFFSET_USEROBJECT_CLIENTOBJCT] ;target's ClientObject mov ebx,@lpstUserInfo lea esi,dword ptr [ebx + OFFSET_USERINFO_NAME] ;self name invoke wsprintf,@lpszBuffer,offset szRecommedBySomeBody,\ esi,@dwRecommRecv invoke SystemMsg,edi,@lpszBuffer ;update UserInfo invoke SendUserInfo,@lpstTargetUserObject ;update voted message invoke SendCharInfo,@lpstTargetUserObject invoke GlobalFree,@lpszBuffer .endif .endif .endif ret ReqEvaluate endp Translated by Digital Eanae -> So if anyone wants to crack at this. Plix share plix. ^^ |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Feb 2005
Posts: 134
|
very nice share Eanae, and thx to Digital for translating
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Apr 2006
Posts: 52
|
Great Job!
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Jan 2006
Posts: 584
|
Eanae.. here.. take some!
![]() Thank you! Almost forgot.. Thanks Digital for translating!
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Jan 2006
Posts: 281
|
n1 Eanae good work...
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Apr 2006
Posts: 729
|
Excuse me, what file is necessary to correct with this code, and on what offsets?
Thanks for translate\sharing. |
|
|
|
|
#7 | |
|
Архивный участник
Join Date: Jun 2005
Posts: 262
|
Quote:
|
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Mar 2006
Posts: 57
|
It's only for c4 (different packet), or will it work too on c3?
|
|
|
|
|
#9 | ||
|
Архивный участник
Join Date: Apr 2006
Posts: 57
|
Quote:
|
||
|
|
|
|
#10 | |||
|
Архивный участник
Join Date: Jun 2005
Posts: 262
|
Quote:
|
|||
|
|
|
|
#11 | ||||
|
Архивный участник
Join Date: Apr 2006
Posts: 57
|
Quote:
|
||||
|
|
|
|
#12 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
damn...
what you asking about? here is Recomendation handler.. call this function on RecomendPacketDetected i do not understand what you want to "crack"? here just ONE function from originator package shows logic, how and what he doing to add recommendation some checks (reclist overflow, level, valid target, etc), then user/char update if all ok |
|
|
|
|
#13 | |
|
Архивный участник
Join Date: Apr 2006
Posts: 57
|
Quote:
coz who cares how it works - works thats all what interesting... |
|
|
|
|
|
#14 | |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
Quote:
|
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Feb 2005
Posts: 177
|
agree! - let`s wait. ^^
|
|
|
|
|
#16 | ||
|
Архивный участник
Join Date: Feb 2005
Posts: 705
|
Quote:
, thats the spirit of a leecher xD
|
||
|
|
|
|
#17 | |||
|
Архивный участник
Join Date: Apr 2006
Posts: 57
|
Quote:
*but must hide... *
|
|||
|
|
|
|
#18 | |
|
Архивный участник
Join Date: Mar 2006
Posts: 57
|
Quote:
I don't want to start a fight, only it's a reflexion, try to learn and contribute. The "engineer spirit" in fact it's how it works. Every admin should act this way, and not only click exe and wait the things to be done alone. PD: humordwarf xD |
|
|
|
|
|
#19 | ||
|
Архивный участник
Join Date: Apr 2006
Posts: 57
|
Quote:
|
||
|
|
|
|
#20 |
|
Архивный участник
Join Date: Mar 2006
Posts: 57
|
Sorry, it was a misunderstand, that was reflexion, not focused on you (I was generalizing).
|
|
|
|
|
#21 |
|
Архивный участник
Join Date: Jun 2005
Posts: 262
|
In the case you didn't know, the dll for this WAS released. This is part of linex.dll. >_>
|
|
|
|
|
#22 |
|
Архивный участник
Join Date: Apr 2006
Posts: 6
|
Excuse me for stupid question. Where to insert this code? What file (dll?) to decompile? I'm a newbie but i know i can do this, i need only a place to hook and start researching *) Sry for my english
/rus Народ поясните пожалуйста, откуда плясать? Какой файл декомпилировать, и чем лучше это делать? Я уверен что соображу что к чему, просто отправная точка нужна../rus |
|
|
|
|
#23 |
|
Архивный участник
Join Date: Feb 2005
Posts: 134
|
|
|
|
|
|
#24 |
|
Архивный участник
Join Date: Apr 2006
Posts: 6
|
Thalone Thx!
I still dont understand where to put this Porcedure (which file, l2server or linex?) and where (and how) to call it (does it needs to be like "If (packet==RecomPacket) Recommend(); " but only in asm?)) |
|
|
|
|
#25 |
|
Архивный участник
Join Date: Apr 2006
Posts: 729
|
This code isn't compiled asm code, I think.
And no way to compile it, I was try it 10+ times in different compilers. I'm very stupid in asm. +) |
|
|
|
|