Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


A few questions about packets
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Odecey
Master Cheater
Reputation: 1

Joined: 19 Apr 2007
Posts: 259
Location: Scandinavia

PostPosted: Fri Jan 09, 2009 3:26 am    Post subject: Reply with quote

dnsi0: Would this be how I call the function?Note: I do not know ASM, but searched a bit and this is what I came up with:
Code:

_asm Decrypt (char* encryptedPacket)
{
push encryptedPacket
call decryptionAddress
pop encryptedPacket
mov buffer, eax
ret
}
What this code is supposed to do is call the decryption method with encrypedPacket as parameter, and store the output in buffer.
_________________
Never confuse activity with productivity. You can be busy without a purpose, but what's the point?- Rick Warren
Back to top
View user's profile Send private message MSN Messenger
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Fri Jan 09, 2009 2:45 pm    Post subject: Reply with quote

Odecey wrote:
dnsi0: Would this be how I call the function?Note: I do not know ASM, but searched a bit and this is what I came up with:
Code:

_asm Decrypt (char* encryptedPacket)
{
push encryptedPacket
call decryptionAddress
pop encryptedPacket
mov buffer, eax
ret
}
What this code is supposed to do is call the decryption method with encrypedPacket as parameter, and store the output in buffer.


no. You would have to jump into the function. But the function is weird. It doeswn't have the stack preservation header. It goes stright to mov something,[value]
So I don't really know about these functions. I could also hook to what called it and find out the parameters it takes to call this function.

And also. If you can't come up with easy asm code then you should learn more before trying to make a packet editor...
Back to top
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Fri Jan 09, 2009 3:34 pm    Post subject: Reply with quote

If you use MS's you'd have to call rather than jmp or else it will retn to the wrong place. And if you used a function pointer, it would make calling it easier.
_________________
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Fri Jan 09, 2009 6:44 pm    Post subject: Reply with quote

no I mean you use it like you do the hookhop. but u cant use the push ebp and the mov ebp,esp cause maplestory's functions are screwed at that point. I checked and it doesn't have the stack preservation header for some reason why?
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Fri Jan 09, 2009 8:06 pm    Post subject: Reply with quote

This is so retarded, MapleStory uses wrappers, I think. Even if you find your way out of that, GameGuard will fuck your ass up by rewriting your hook.
Back to top
View user's profile Send private message
crayzbeef
Expert Cheater
Reputation: 0

Joined: 21 Jan 2007
Posts: 101

PostPosted: Sun Jan 11, 2009 1:20 am    Post subject: Reply with quote

Odecey wrote:
dnsi0: Would this be how I call the function?Note: I do not know ASM, but searched a bit and this is what I came up with:
Code:

_asm Decrypt (char* encryptedPacket)
{
push encryptedPacket
call decryptionAddress
pop encryptedPacket
mov buffer, eax
ret
}
What this code is supposed to do is call the decryption method with encrypedPacket as parameter, and store the output in buffer.


Don't make it hard on yourself. Stop calling asm code inside C++ and use C++.
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Sun Jan 11, 2009 1:39 am    Post subject: Reply with quote

crayzbeef wrote:
Odecey wrote:
dnsi0: Would this be how I call the function?Note: I do not know ASM, but searched a bit and this is what I came up with:
Code:

_asm Decrypt (char* encryptedPacket)
{
push encryptedPacket
call decryptionAddress
pop encryptedPacket
mov buffer, eax
ret
}
What this code is supposed to do is call the decryption method with encrypedPacket as parameter, and store the output in buffer.


Don't make it hard on yourself. Stop calling asm code inside C++ and use C++.
He needs to know ASM if he ever wants to find the decryption/encryption routine.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites