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 


{HELP}Simple ASM script in C++

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

Joined: 08 Jan 2006
Posts: 109

PostPosted: Wed Dec 26, 2007 5:08 pm    Post subject: {HELP}Simple ASM script in C++ Reply with quote

I was wondering how you could, lets say change the address of godmode for maplestory from JNE to JE using C++ or C using an ASM script. I know you need a GGCRC, but I was just wondering how it worked in C++.
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Wed Dec 26, 2007 6:07 pm    Post subject: Reply with quote

yea make a dll for injection and use:
__asm
Your asm here o.o
Back to top
View user's profile Send private message
vegito616
Expert Cheater
Reputation: 0

Joined: 08 Jan 2006
Posts: 109

PostPosted: Wed Dec 26, 2007 6:46 pm    Post subject: Reply with quote

Do think you code post sample code? It would be awesome if you could. Any sample would do.
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Wed Dec 26, 2007 6:51 pm    Post subject: Reply with quote

Short Jump
Code:
*(BYTE*)0xGODMODE = 0x74/0x75


Long Jump

Code:
*(BYTE*)0xGODMODE+1 = 0x84/0x85

_________________
Back to top
View user's profile Send private message
"A"
Grandmaster Cheater Supreme
Reputation: 0

Joined: 26 Dec 2007
Posts: 1589
Location: Deme,Broa,Scaina

PostPosted: Wed Dec 26, 2007 7:11 pm    Post subject: Reply with quote

ye me to
Back to top
View user's profile Send private message
vegito616
Expert Cheater
Reputation: 0

Joined: 08 Jan 2006
Posts: 109

PostPosted: Thu Dec 27, 2007 9:39 am    Post subject: Reply with quote

How would you NOP and address and "un"NOP an address?

Last edited by vegito616 on Thu Dec 27, 2007 9:49 am; edited 1 time in total
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Thu Dec 27, 2007 9:48 am    Post subject: Re: {HELP}Simple ASM script in C++ Reply with quote

vegito616 wrote:
I was wondering how you could, lets say change the address of godmode for maplestory from JNE to JE using C++ or C using an ASM script. I know you need a GGCRC, but I was just wondering how it worked in C++.
The simplest method (for godmode) is to use WriteProcessMemory, there's no doubt about it.

vegito616 wrote:
But how would you use an assembly script in C++?
Code:
__asm {
}
Note: assembly, not auto-assembly.
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Thu Dec 27, 2007 9:54 am    Post subject: Reply with quote

vegito616 wrote:
How would you NOP and address and "un"NOP an address?


You'd need to store the original opcode in a buffer, like this:

(c++ btw)

Code:

byte buffer[2];
byte bytes[2];

ReadProcessMemory(buffer, blah, blah blah); //read the bytes into buffer
bytes = { 0x90 0x90 }; //I forget how to init arrays in C++

WriteProcessMemory(bytes, blah, blah blah); //write in your nops

//........

//whenever you want to put it back:

WriteProcessMemory(buffer, blah, blah, blah);


Also note, that blah blah blah won't work, I just didn't feel like looking up the parameters. Wink

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Thu Dec 27, 2007 10:53 am    Post subject: Reply with quote

hProcess, Address, BytesToRead/Write, Buffer?
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Thu Dec 27, 2007 4:52 pm    Post subject: Reply with quote

Why do you have those memorized?
_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
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
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