saik Newbie cheater
Reputation: 0
Joined: 06 Apr 2016 Posts: 17
|
Posted: Sun Jun 26, 2016 5:04 pm Post subject: C# Fasm |
|
|
C# Code
Code: |
uint addy = 0x01EC4B39;
int Value =10000;
GreyMagic.ExternalProcessReader Reader = new GreyMagic.ExternalProcessReader(System.Diagnostics.Process.GetCurrentProcess());
IntPtr codeCave = Reader.AllocateMemory(0x2048);
/* var asm = Reader.Asm;
asm.AddLine("use32");
asm.AddLine("mov edx,"+ Value +"");
asm.AddLine("mov[ecx + 5C],edx");
asm.AddLine("mov[ebp - 1C], edx");
asm.AddLine("jmp {0}", codeCave);
asm.AddLine("nop");
asm.Inject(addy);
asm.Clear();*/
///////////////////////////////// or
var asmscripit = new[] {
"use32",
"mov edx,"+ Value +"",
"mov[ecx + 5C],edx",
"mov[ebp - 1C], edx",
string.Format("jmp {0}", codeCave),
"nop"
};
foreach (string line in asmscripit)
{
asm.AddLine(line);
}
asm.Inject(addy);
asm.Clear();
|
CE Script
Code: |
mov edx,[Value]
mov [ecx+5C],edx
mov [ebp-1C],edx
exit:
jmp returnhere
01EC4B39:
jmp newmem
nop
returnhere:
|
when use CE project no thing change
it's look correct or something is wrong
sorry for asking it's first time to me to use Fasm.NET
Thanks
|
|