View previous topic :: View next topic |
Author |
Message |
onlyu1106 How do I cheat?
Reputation: 0
Joined: 25 Nov 2015 Posts: 8
|
Posted: Sun Feb 28, 2016 6:53 am Post subject: [C#] Invoke (inject) ASM code into process |
|
|
In AutoIT, I use asm converter
EX:
PUSHAD()
MOV_ECX(_MEMORYREAD(0X0064577C, $MEMID))
MOV_EAX($BASE_SEND)
PUSH_EAX()
MOV_EDX(0X0048D330)
CALL_EDX()
POPAD()
RET()
The asm code will be converted to binary code, then I use:
VirtualAllocEx
WriteProcessMemory
CreateRemoteThread
WaitForSingleObject
VirtualFreeEx
CloseHandle
In C#, I tried to search more information about it, but I dont have any idea about it.....I think, the first we have to convert asm to binary code then inject it into process, but how to convert it in C#?
|
|
Back to top |
|
 |
mgostIH Expert Cheater
Reputation: 3
Joined: 01 Jan 2016 Posts: 159
|
Posted: Sun Feb 28, 2016 12:42 pm Post subject: Re: [C#] Invoke (inject) ASM code into process |
|
|
onlyu1106 wrote: | In AutoIT, I use asm converter
EX:
PUSHAD()
MOV_ECX(_MEMORYREAD(0X0064577C, $MEMID))
MOV_EAX($BASE_SEND)
PUSH_EAX()
MOV_EDX(0X0048D330)
CALL_EDX()
POPAD()
RET()
The asm code will be converted to binary code, then I use:
VirtualAllocEx
WriteProcessMemory
CreateRemoteThread
WaitForSingleObject
VirtualFreeEx
CloseHandle
In C#, I tried to search more information about it, but I dont have any idea about it.....I think, the first we have to convert asm to binary code then inject it into process, but how to convert it in C#? |
Cheat Engine will convert any instruction in binary code by itself, if that's what you are asking.
_________________
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8586 Location: 127.0.0.1
|
Posted: Sun Feb 28, 2016 7:47 pm Post subject: |
|
|
There is a FASM library available for C# to inject ASM through FASM.
https://github.com/ZenLulz/Fasm.NET
Look around and you can find some more up to date similar projects though as this link is about 3 years old.
_________________
- Retired. |
|
Back to top |
|
 |
onlyu1106 How do I cheat?
Reputation: 0
Joined: 25 Nov 2015 Posts: 8
|
Posted: Mon Feb 29, 2016 5:08 pm Post subject: |
|
|
atom0s wrote: | There is a FASM library available for C# to inject ASM through FASM.
Look around and you can find some more up to date similar projects though as this link is about 3 years old. |
Tks very much...you're always help me when I have a problem <3 xD
|
|
Back to top |
|
 |
|