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:
Copy      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:
Copy      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


Forum Jump:


Users browsing this thread: 1 Guest(s)