Module mem

Mem module provides read/write operations on current memory address space.

All the functions in here can also be executed in another way, by getting the current process object in kernel module and call read/write functions.

Invalid memory read will return 0, which is the limitation of this module. But write operations can return a boolean indicates failure or success.

Functions

readByte (addr) Read the byte value (8-bit) at the specified address.
readWord (addr) Read the word value (16-bit) at the specified address.
readDword (addr) Read the dword value (32-bit) at the specified address.
readQword (addr) Read the qword value (64-bit) at the specified address.
writeByte (addr, data) Write a byte (8-bit) to the specified address.
readWord (addr, data) Write a word (16-bit) to the specified address.
readDword (addr, data) Write a dword (32-bit) to the specified address.
readQword (addr, data) Write a qword (64-bit) to the specified address.


Functions

readByte (addr)
Read the byte value (8-bit) at the specified address.

Parameters:

  • addr The address to perform the read.

Returns:

    Byte value stored at the given address.
readWord (addr)
Read the word value (16-bit) at the specified address.

Parameters:

  • addr The address to perform the read.

Returns:

    Word value stored at the given address.
readDword (addr)
Read the dword value (32-bit) at the specified address.

Parameters:

  • addr The address to perform the read.

Returns:

    Dword value stored at the given address.
readQword (addr)
Read the qword value (64-bit) at the specified address.

Parameters:

  • addr The address to perform the read.

Returns:

    Qword value stored at the given address.
writeByte (addr, data)
Write a byte (8-bit) to the specified address.

Parameters:

  • addr The address to perform the read.
  • data The byte to write.

Returns:

    True if the write operation performed successfully.
readWord (addr, data)
Write a word (16-bit) to the specified address.

Parameters:

  • addr The address to perform the read.
  • data The byte to write.

Returns:

    True if the write operation performed successfully.
readDword (addr, data)
Write a dword (32-bit) to the specified address.

Parameters:

  • addr The address to perform the read.
  • data The byte to write.

Returns:

    True if the write operation performed successfully.
readQword (addr, data)
Write a qword (64-bit) to the specified address.

Parameters:

  • addr The address to perform the read.
  • data The byte to write.

Returns:

    True if the write operation performed successfully.
generated by LDoc 1.4.6 Last updated 2021-10-30 01:56:22