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 


Injecting script using c++ rather than the autoassembler?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Ind3siszive
Cheater
Reputation: 0

Joined: 23 Apr 2009
Posts: 43
Location: in a glitch

PostPosted: Sun Jul 12, 2009 10:28 pm    Post subject: Injecting script using c++ rather than the autoassembler? Reply with quote

Ok I want to be able to inject code via a dll into a game. The dll is a d3d9 menu and that is already coded in c++. How can I achieve the same effect with c++ as in the auto assembler. Also i would still like to be able to enable and disable it, thats what the menu is for. Smile



and i would also like to say that im a noob and don't expect me to know exactly what your talking about lol, but any help would be very much appreciated

Here is the auto assembly script




Code:
[ENABLE]
alloc(newmem,1024)
label(returnhere)
label(originalcode)
label(exit)

00459D8D:
jmp newmem
nop
returnhere:

newmem:

originalcode:
mov edx,[eax+1c]
mov [ecx+20],edx

mov edx,540
mov dword ptr [eax+1C],edx

mov edx,99
mov dword ptr [eax+00],edx

mov edx,99
mov dword ptr [eax+04],edx

mov edx,99
mov dword ptr [eax+08],edx

mov edx,99
mov dword ptr [eax+10],edx

mov edx,99
mov dword ptr [eax+14],edx

mov edx,99
mov dword ptr [eax+18],edx

mov edx,99
mov dword ptr [eax+30],edx

mov edx,99
mov dword ptr [eax+38],edx

mov edx,00
mov dword ptr [eax+8c],edx

mov edx,00
mov dword ptr [eax+90],edx

mov edx,80
mov dword ptr [eax+3C],edx

mov dword ptr [ecx+20],edx
exit:
jmp returnhere


[DISABLE]
dealloc(newmem)
00459D8D: // 8B 50 1C 89 51 20 8B
mov edx,[eax+1c]
mov [ecx+20],edx

_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Cheat Engine User
Something epic
Ban
Reputation: 60

Joined: 22 Jun 2007
Posts: 2071

PostPosted: Sun Jul 12, 2009 11:56 pm    Post subject: Reply with quote

I think you find the answer here: http://forum.cheatengine.org/viewtopic.php?t=430125
Back to top
View user's profile Send private message
Ind3siszive
Cheater
Reputation: 0

Joined: 23 Apr 2009
Posts: 43
Location: in a glitch

PostPosted: Mon Jul 13, 2009 12:13 am    Post subject: Reply with quote

lol looks confusing as hell, and ur avator icont thing is rly funny, i just realized that ur thing changes, btw the one with the guys in blue where one is thrusting is what i was talking about
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Cheat Engine User
Something epic
Ban
Reputation: 60

Joined: 22 Jun 2007
Posts: 2071

PostPosted: Mon Jul 13, 2009 5:19 am    Post subject: Reply with quote

Ind3sisziver wrote:
lol looks confusing as hell, and ur avator icont thing is rly funny, i just realized that ur thing changes, btw the one with the guys in blue where one is thrusting is what i was talking about
You find this confusing when you hooked directx and made an external menu in the game using CE asm? Cool story bro. Also, stay ontopic.
Back to top
View user's profile Send private message
Ind3siszive
Cheater
Reputation: 0

Joined: 23 Apr 2009
Posts: 43
Location: in a glitch

PostPosted: Mon Jul 13, 2009 1:54 pm    Post subject: Reply with quote

the menu isnt in asm, and i never said i made it, its hans211 d3dbase, but i think im really close to getting this done.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Mon Jul 13, 2009 3:36 pm    Post subject: Reply with quote

Ind3sisziver wrote:
the menu isnt in asm, and i never said i made it, its hans211 d3dbase, but i think im really close to getting this done.


I don't actually think so. I thought I got a dxoverlay done too and it took me another 3 days to figure out everything.
Back to top
View user's profile Send private message
Ind3siszive
Cheater
Reputation: 0

Joined: 23 Apr 2009
Posts: 43
Location: in a glitch

PostPosted: Mon Jul 13, 2009 4:13 pm    Post subject: Reply with quote

.... i just said i didnt make it, and the menu injects and all, it works with a couple of problems , but for now im just working on getting the hacks in and making them work Smile
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
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