Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_windows.h>
#include <rz_io.h>
#include <rz_lib.h>
#include <rz_types.h>
#include <rz_util.h>
#include <sys/types.h>
Go to the source code of this file.
Classes | |
struct | RzIOW32 |
struct | _PPA |
struct | _RTL_PROCESS_MODULE_INFORMATION |
struct | _RTL_PROCESS_MODULES |
Macros | |
#define | RZK_DEVICE "\\\\.\\rzk\\" |
#define | IOCTL_CODE(DeviceType, Function, Method, Access) (((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method)) |
#define | CLOSE_DRIVER IOCTL_CODE(0x22, 0x803, 0, 1 | 2) |
#define | IOCTL_READ_PHYS_MEM IOCTL_CODE(0x22, 0x807, 0, 1 | 2) |
#define | IOCTL_READ_KERNEL_MEM IOCTL_CODE(0x22, 0x804, 0, 1 | 2) |
#define | IOCTL_WRITE_KERNEL_MEM IOCTL_CODE(0x22, 0x805, 0, 1 | 2) |
#define | IOCTL_GET_PHYSADDR IOCTL_CODE(0x22, 0x809, 0, 1 | 2) |
#define | IOCTL_WRITE_PHYS_MEM IOCTL_CODE(0x22, 0x808, 0, 1 | 2) |
#define | IOCTL_GET_SYSTEM_MODULES IOCTL_CODE(0x22, 0x80a, 0, 1 | 2) |
Typedefs | |
typedef struct _PPA | PA |
typedef struct _PPA * | PPA |
typedef struct _RTL_PROCESS_MODULE_INFORMATION | RTL_PROCESS_MODULE_INFORMATION |
typedef struct _RTL_PROCESS_MODULE_INFORMATION * | PRTL_PROCESS_MODULE_INFORMATION |
typedef struct _RTL_PROCESS_MODULES | RTL_PROCESS_MODULES |
typedef struct _RTL_PROCESS_MODULES * | PRTL_PROCESS_MODULES |
Functions | |
BOOL | StartStopService (LPCTSTR lpServiceName, BOOL bStop) |
int | GetSystemModules (RzIO *io) |
int | ReadKernelMemory (ut64 address, ut8 *buf, int len) |
int | WriteKernelMemory (ut64 address, const ut8 *buf, int len) |
int | Init (const char *driverPath) |
Variables | |
HANDLE | gHandleDriver |
#define CLOSE_DRIVER IOCTL_CODE(0x22, 0x803, 0, 1 | 2) |
Definition at line 52 of file io_rzk_windows.h.
#define IOCTL_CODE | ( | DeviceType, | |
Function, | |||
Method, | |||
Access | |||
) | (((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method)) |
Definition at line 45 of file io_rzk_windows.h.
#define IOCTL_GET_PHYSADDR IOCTL_CODE(0x22, 0x809, 0, 1 | 2) |
Definition at line 56 of file io_rzk_windows.h.
#define IOCTL_GET_SYSTEM_MODULES IOCTL_CODE(0x22, 0x80a, 0, 1 | 2) |
Definition at line 58 of file io_rzk_windows.h.
#define IOCTL_READ_KERNEL_MEM IOCTL_CODE(0x22, 0x804, 0, 1 | 2) |
Definition at line 54 of file io_rzk_windows.h.
#define IOCTL_READ_PHYS_MEM IOCTL_CODE(0x22, 0x807, 0, 1 | 2) |
Definition at line 53 of file io_rzk_windows.h.
#define IOCTL_WRITE_KERNEL_MEM IOCTL_CODE(0x22, 0x805, 0, 1 | 2) |
Definition at line 55 of file io_rzk_windows.h.
#define IOCTL_WRITE_PHYS_MEM IOCTL_CODE(0x22, 0x808, 0, 1 | 2) |
Definition at line 57 of file io_rzk_windows.h.
#define RZK_DEVICE "\\\\.\\rzk\\" |
Definition at line 43 of file io_rzk_windows.h.
typedef struct _RTL_PROCESS_MODULE_INFORMATION * PRTL_PROCESS_MODULE_INFORMATION |
typedef struct _RTL_PROCESS_MODULES * PRTL_PROCESS_MODULES |
typedef struct _RTL_PROCESS_MODULE_INFORMATION RTL_PROCESS_MODULE_INFORMATION |
typedef struct _RTL_PROCESS_MODULES RTL_PROCESS_MODULES |
Definition at line 94 of file io_rzk_windows.c.
References rz_io_t::cb_printf, DWORD, eprintf, test-lz4-speed::fileName, GetFileName(), gHandleDriver, i, IOCTL_GET_SYSTEM_MODULES, malloc(), _RTL_PROCESS_MODULES::Modules, NULL, and _RTL_PROCESS_MODULES::NumberOfModules.
Referenced by rzk__system().
Definition at line 175 of file io_rzk_windows.c.
References eprintf, FALSE, InitDriver(), InstallService(), RemoveService(), StartStopService(), and TRUE.
Referenced by rzk__open().
Definition at line 118 of file io_rzk_windows.c.
References DWORD, eprintf, free(), gHandleDriver, IOCTL_READ_KERNEL_MEM, len, malloc(), memcpy(), memset(), NULL, and p.
Referenced by rzk__read().
BOOL StartStopService | ( | LPCTSTR | lpServiceName, |
BOOL | bStop | ||
) |
Definition at line 43 of file io_rzk_windows.c.
References eprintf, FALSE, HANDLE, NULL, and TRUE.
Referenced by Init(), and rzk__close().
Definition at line 147 of file io_rzk_windows.c.
References DWORD, eprintf, free(), gHandleDriver, IOCTL_WRITE_KERNEL_MEM, len, malloc(), memcpy(), NULL, and p.
Referenced by rzk__write().
|
extern |
Definition at line 8 of file io_rzk_windows.c.
Referenced by GetSystemModules(), InitDriver(), ReadKernelMemory(), rzk__close(), and WriteKernelMemory().