 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Thu Nov 29, 2007 10:28 pm Post subject: c++ , asm, conversion |
|
|
how would i convert:
| Code: | Stat struc
CurrentHP DWORD ?
MaxHP DWORD ?
CurrentMP DWORD ?
MaxMP DWORD ?
CurrentEXP DWORD ?
MaxEXP DWORD ?
IGN DWORD ?
Stat ends
Stats Stat <>
.code
MHPBot proc ;; AutoHP bot start
invoke Sleep, 30h ; Sleep to avoid PC rape/overpotting
call ChkFocus ; Call focus check API (to see if you're triyng to type)
test eax,eax ; See if return value (EAX) is 0
jnz MHPBot ; If return value isn't 0 (means that someone is trying to type) then return to MHPBot
cmp [HPBool], 1 ; Check AutoHP state boolean
jne lolmp ; If it's not 1 (ON) then jump to AutoMP bot
mov eax, [HPotato] ; Move desired HP to pot at into EAX
cmp [Stats.CurrentHP], eax ; Compares curernt HP to HP-to-pot-at
jge lolmp ; If it's greater then jump to AutoMP bot
mov [MSGStructure.wParam], 2Dh ; If it's below it then prepare AutoHP bot. Move INS wParam into bot structure
mov [MSGStructure.lParam], 1520001h ; Move INS lParam into bot structure
invoke TranslateMessage, addr MSGStructure ;; Translate bot structure parameters
invoke DispatchMessage, addr MSGStructure ;; Call keystrokes under params with translated bot structure
lolmp:
cmp [MPBool], 1 ;; Check AutoMP state boolean
jne MHPBot ; If it's not 1 (ON) then jump to AutoHP (start of loop)
mov eax, [MPotato] ; Move desired MP to pot at into EAX
cmp [Stats.CurrentMP], eax ; Compares curernt MP to MP-to-pot-at
jge MHPBot ; If it's greater then jump to AutoHP bot (start of loop)
mov [MSGStructure.wParam], 2Eh ; If it's below it then prepare AutoMP bot. Move DEL wParam into bot structure
mov [MSGStructure.lParam], 1530001h ; Move DEL lParam into bot structure
invoke TranslateMessage, addr MSGStructure ;; Translate bot structure parameters
invoke DispatchMessage, addr MSGStructure ;; Call keystrokes under params with translated bot structure
jmp MHPBot ; Jump to beginning of loop
MHPBot endp
BotCore proc
mov eax, dword ptr[StatInject] ; Move address of Stat Inject (hook source) into EAX
mov ecx, BotDecrypt ; Move address of BotDecrypt function (hook dest) into ECX
sub ecx, eax ;; Calculate jump offset pt #1
sub ecx, 5 ;; Calculate jump offset pt #2
mov byte ptr[eax], 0E9h ; Start jump byte sequence (E9 - VA), Move E9 into byte at EAX (return value)
inc eax ; Increase value of EAX (so we move past E9 byte)
mov dword ptr[eax], ecx ; Move offset into EAX (finish jump)
add eax, 4 ;; Point EAX to return value
mov dword ptr[StatInject], eax ;; Store address
BotCore endp
BotDecrypt proc ;; Bot Decrypt function
push eax ; Basically this just moves the value of ESP (stores decrypted values) and moves it into my stats structure
mov eax, [esp+4] ;
mov [Stats.CurrentHP], eax ;
mov eax, [esp+8] ;
mov [Stats.MaxHP], eax ;
mov eax, [esp+0Ch] ;
mov [Stats.CurrentMP], eax ;
mov eax, [esp+10h] ;
mov [Stats.MaxMP], eax ;
mov eax, [esp+14h] ;
mov [Stats.CurrentEXP], eax ;
mov eax, [esp+18h] ;
mov [Stats.MaxEXP], eax ;
mov eax, 7E1B10h ;
mov eax, [eax] ;
mov eax, [eax+5E8h] ;
mov [Stats.IGN], eax ;
pop eax ;
call dword ptr[BDCaddr] ; Original code
jmp dword ptr[StatInject] ; Return back
BotDecrypt endp |
to C++, and how could i inject this into maplestory from another process? :[
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Thu Nov 29, 2007 10:30 pm Post subject: |
|
|
First, you would ask x0r if you have the right to rip his work.
Second, get out.
|
|
| Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Thu Nov 29, 2007 10:31 pm Post subject: |
|
|
| Any help please?
|
|
| Back to top |
|
 |
|
|
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
|
|