Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Read/Write Memory values for a certain Process?
#1
I only have here a Sample code,dont know how to make it in QM.
just want to read/write values in a certain application.

Code:
Select All      Help
Pseudo code Example
;Declaration of Addresses/offsets
def BaseAddress        0x0BB2EE
def Offset1                0x2C7
def Offset2                0xBB1

;Setting the Pointer for the addresses
Address1 = BaseAddress + Offset1
Address2 = BaseAddress + Offset2


;Attach Process/Allocates memory
int hWnd = win("Target Window")
__ProcessMemory o.Alloc(hWnd 0)

;Write/Read the memory

int value = 1
int read = ReadProcessMemory(o Address1 &Value 4 0)
out.read
int write = WriteProcessMemory(o, BaseAddress1, &NewValue 4 0)
out.write

Hope someone can Help me.Thank you
#2
Macro Macro2936
Code:
Select All      Help
;Declaration of Addresses/offsets
def BaseAddress        0x0BB2EE
def Offset1                0x2C7
def Offset2                0xBB1

;Setting the Pointer for the addresses
byte* Address1 = +(BaseAddress + Offset1)
byte* Address2 = +(BaseAddress + Offset2)


;Attach Process, don't allocate memory
int hWnd = win("Target Window")
__ProcessMemory o.Alloc(hWnd 0)

;Write/Read the memory

int value=1111
o.WriteOther(Address1 &value 4)
int newValue
o.ReadOther(&newValue Address1 4)
out newValue
#3
Thank you.Will try it later..
but what if i have multilevel pointer?

will this do the job?

Function Multilevel_pointer
Code:
Select All      Help
def BaseAddress 0x0BB2EE
def Offset1 0x2C7
def Offset2 0xBB1
def Offset3 0xCB2
def Offset4 0xD4A

;Setting the Pointer for the addresses
byte* Address1 = +(BaseAddress + Offset1)
byte* Address2 = +(BaseAddress + Offset2)


byte* Address3 =+(Address1+Offset3)
byte* Address4 =+ (Address2+Offset4)


Forum Jump:


Users browsing this thread: 1 Guest(s)