From c79bbdb0448501987c0c16c2877c780143156d1e Mon Sep 17 00:00:00 2001 From: Orfeas <38209077+0xfea5@users.noreply.github.com> Date: Sun, 21 Apr 2024 16:27:55 +0300 Subject: Changes in trainer interface, bug fixes & helper scripts --- src/vm.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/vm.h') diff --git a/src/vm.h b/src/vm.h index 3f3cc09..9164c57 100644 --- a/src/vm.h +++ b/src/vm.h @@ -21,9 +21,17 @@ typedef struct MemscanResult { struct MemscanResult *next; } MemscanResult; +typedef struct Bytes { + uint8_t *data; + size_t len; +} Bytes; + VMMapping* parse_vmmap (int pid); -MemscanResult* memscan(int pid, uint8_t *byte_seq, uint64_t byte_seq_len); +MemscanResult* memscan(int pid, Bytes aob); + +void memwrite(int pid, void *address, Bytes aob); + +Bytes memread(int pid, void *address, size_t nbytes); -void memwrite(int pid, void *address, uint8_t *data, size_t data_len); #endif // _VM_H_ -- cgit v1.2.3