Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [Translated!] Recomendation System (https://postpacific.loc-online.com/showthread.php?t=4097)

Eanae 19.04.2006 03:27

[Translated!] Recomendation System
 
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:ptr UserInfoEx
mov 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:ptr UserInfoEx
mov 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:ptr UserInfoEx
dec [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. ^^

Thalone 19.04.2006 04:09

very nice share Eanae, and thx to Digital for translating

GamesX 19.04.2006 06:11

Great Job!

Megatronpt 19.04.2006 07:38

Eanae.. here.. take some! ;)

Thank you!

Almost forgot.. Thanks Digital for translating! ;)

Met45 19.04.2006 07:43

n1 Eanae good work... :D

hel 19.04.2006 14:59

Excuse me, what file is necessary to correct with this code, and on what offsets?
Thanks for translate\sharing.

Eanae 19.04.2006 16:48

Quote:

Originally Posted by hel
Excuse me, what file is necessary to correct with this code, and on what offsets?
Thanks for translate\sharing.

That's what im hoping someone will share with us. ^^

snikr 19.04.2006 18:03

It's only for c4 (different packet), or will it work too on c3?

watcher 19.04.2006 19:58

Quote:

Originally Posted by Eanae
Quote:

Originally Posted by hel
Excuse me, what file is necessary to correct with this code, and on what offsets?
Thanks for translate\sharing.

That's what im hoping someone will share with us. ^^

i think you wrong in last words(

Eanae 19.04.2006 20:24

Quote:

Originally Posted by watcher
Quote:

Originally Posted by Eanae
Quote:

Originally Posted by hel
Excuse me, what file is necessary to correct with this code, and on what offsets?
Thanks for translate\sharing.

That's what im hoping someone will share with us. ^^

i think you wrong in last words(

according to aspire, humordwarf will know what to do with this.

watcher 19.04.2006 20:39

Quote:

Originally Posted by Eanae
Quote:

Originally Posted by watcher
Quote:

Originally Posted by Eanae
Quote:

Originally Posted by hel
Excuse me, what file is necessary to correct with this code, and on what offsets?
Thanks for translate\sharing.

That's what im hoping someone will share with us. ^^

i think you wrong in last words(

according to aspire, humordwarf will know what to do with this.

Aspire knows what to say - HD knows what to do - nice group^^

humordwarf 20.04.2006 05:18

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

watcher 20.04.2006 06:51

Quote:

Originally Posted by humordwarf
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

hehe, i think all waiting dll with this feature only :wink:
coz who cares how it works - works thats all what interesting...

humordwarf 20.04.2006 08:17

Quote:

hehe, i think all waiting dll with this feature only
lol. lets continue waiting

SOnick 20.04.2006 09:08

agree! - let`s wait. ^^

SoaPy 20.04.2006 10:17

Quote:

Originally Posted by watcher
Quote:

Originally Posted by humordwarf
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

hehe, i think all waiting dll with this feature only :wink:
coz who cares how it works - works thats all what interesting...

continue like that :D, thats the spirit of a leecher xD

watcher 20.04.2006 10:24

Quote:

Originally Posted by SoaPy
Quote:

Originally Posted by watcher
Quote:

Originally Posted by humordwarf
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

hehe, i think all waiting dll with this feature only :wink:
coz who cares how it works - works thats all what interesting...

continue like that :D, thats the spirit of a leecher xD

LOL Soapy - im a great leecher, faster than elcapo :wink:
*but must hide... :D *

snikr 20.04.2006 10:27

Quote:

Originally Posted by watcher
hehe, i think all waiting dll with this feature only :wink:
coz who cares how it works - works thats all what interesting...

But... what will you do in the future if no one wants to share? I don't know nothing about hexing, but if I were a developer I'd tried to understand the basis (as I'm starting to do with AI), and maybe someday you'll be the one who shares and not the leecher.

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

watcher 20.04.2006 10:33

Quote:

Originally Posted by snikr
Quote:

Originally Posted by watcher
hehe, i think all waiting dll with this feature only :wink:
coz who cares how it works - works thats all what interesting...

But... what will you do in the future if no one wants to share? I don't know nothing about hexing, but if I were a developer I'd tried to understand the basis (as I'm starting to do with AI), and maybe someday you'll be the one who shares and not the leecher.

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

i will sit near HD and smoke, coz i tired do something for ppl in mine time.

snikr 20.04.2006 11:24

Sorry, it was a misunderstand, that was reflexion, not focused on you (I was generalizing).

Eanae 20.04.2006 15:27

In the case you didn't know, the dll for this WAS released. This is part of linex.dll. >_>

FilimoniC 14.05.2006 15:28

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

Thalone 14.05.2006 18:29

http://sandsprite.com/CodeStuff/IAT_Hooking.html

http://msdn.microsoft.com/msdnmag/is...E/default.aspx

HF GL

FilimoniC 14.05.2006 20:34

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?))

hel 14.05.2006 20:34

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. +)

FilimoniC 14.05.2006 20:54

it's not raw asm, but author wrote his compiler in 1st post...i think

hel 14.05.2006 21:05

FilimoniC:
Quote:

everything is written 100% win32 asm
You're right, but I was trying win32asm, for nothing... :(


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