| View previous topic :: View next topic |
| Author |
Message |
vegito616 Expert Cheater
Reputation: 0
Joined: 08 Jan 2006 Posts: 109
|
Posted: Wed Dec 26, 2007 5:08 pm Post subject: {HELP}Simple ASM script in C++ |
|
|
| 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 |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Wed Dec 26, 2007 6:07 pm Post subject: |
|
|
yea make a dll for injection and use:
__asm
Your asm here o.o
|
|
| Back to top |
|
 |
vegito616 Expert Cheater
Reputation: 0
Joined: 08 Jan 2006 Posts: 109
|
Posted: Wed Dec 26, 2007 6:46 pm Post subject: |
|
|
| Do think you code post sample code? It would be awesome if you could. Any sample would do.
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Wed Dec 26, 2007 6:51 pm Post subject: |
|
|
Short Jump
| Code: | | *(BYTE*)0xGODMODE = 0x74/0x75 |
Long Jump
| Code: | | *(BYTE*)0xGODMODE+1 = 0x84/0x85 |
_________________
|
|
| Back to top |
|
 |
"A" Grandmaster Cheater Supreme
Reputation: 0
Joined: 26 Dec 2007 Posts: 1589 Location: Deme,Broa,Scaina
|
Posted: Wed Dec 26, 2007 7:11 pm Post subject: |
|
|
| ye me to
|
|
| Back to top |
|
 |
vegito616 Expert Cheater
Reputation: 0
Joined: 08 Jan 2006 Posts: 109
|
Posted: Thu Dec 27, 2007 9:39 am Post subject: |
|
|
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 |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Thu Dec 27, 2007 9:48 am Post subject: Re: {HELP}Simple ASM script in C++ |
|
|
| 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++? | Note: assembly, not auto-assembly.
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Thu Dec 27, 2007 9:54 am Post subject: |
|
|
| 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.
_________________
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Thu Dec 27, 2007 10:53 am Post subject: |
|
|
| hProcess, Address, BytesToRead/Write, Buffer?
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Thu Dec 27, 2007 4:52 pm Post subject: |
|
|
Why do you have those memorized?
_________________
|
|
| Back to top |
|
 |
|