| View previous topic :: View next topic |
| Author |
Message |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Tue Nov 27, 2007 9:28 pm Post subject: [C+] asm |
|
|
| How do i write asm to a process without injecting the console applicatin into it. Ie, have a standalone console and have it write to the process.
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Tue Nov 27, 2007 9:31 pm Post subject: |
|
|
__asm
{
}
_________________
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Tue Nov 27, 2007 9:31 pm Post subject: |
|
|
With WriteProcessMemory()...
Why is this question always asked.
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Tue Nov 27, 2007 9:35 pm Post subject: |
|
|
oh i misread, i thought he meant how to put asm in his project.
My bad.
What Flyte said.
_________________
|
|
| Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Tue Nov 27, 2007 9:36 pm Post subject: |
|
|
ok wait, not that, look.
My console is standlaone. I want it to put things and get things off of eax as an example. But i want to do this to a process, without writeprocessmemory.
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Tue Nov 27, 2007 9:46 pm Post subject: |
|
|
| slippppppppp wrote: | ok wait, not that, look.
My console is standlaone. I want it to put things and get things off of eax as an example. But i want to do this to a process, without writeprocessmemory. |
Oh, you mean you want to dump the registers?
Link to the the process as a debugger, stick an interrupt on the address you want to dump, then use GetThreadContext();.
|
|
| Back to top |
|
 |
killersamurai Expert Cheater
Reputation: 0
Joined: 10 Sep 2007 Posts: 197 Location: Colorado
|
Posted: Wed Nov 28, 2007 2:21 am Post subject: |
|
|
One of the easiest ways of doing this is calling the function of the process that changes eax or reads it then get/change the value.
[code]
DWORD address = 0x456432;
DWORD temp = 0;
[Getting eax]
__asm
{
call address;
mov temp, eax;
}
[Changing eax]
__asm
{
mov eax, 0xff;
call address;
}
[code]
|
|
| Back to top |
|
 |
|