aboutsummaryrefslogtreecommitdiffstats
path: root/src/vm.h
diff options
context:
space:
mode:
authorOrfeas <38209077+0xfea5@users.noreply.github.com>2024-04-16 22:14:29 +0300
committerOrfeas <38209077+0xfea5@users.noreply.github.com>2024-04-19 20:20:13 +0300
commit7e8bd04389875d8569463f42923792557edc2908 (patch)
treeaad1922fcfdd0af286531b3b2b58aa6c3da67be8 /src/vm.h
parentMemory scanning to find byte patterns (diff)
downloadlinux-game-trainer-7e8bd04389875d8569463f42923792557edc2908.tar.gz
linux-game-trainer-7e8bd04389875d8569463f42923792557edc2908.zip
Write other process' memory
Diffstat (limited to 'src/vm.h')
-rw-r--r--src/vm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vm.h b/src/vm.h
index 4a994f9..3f3cc09 100644
--- a/src/vm.h
+++ b/src/vm.h
@@ -1,6 +1,7 @@
1#ifndef _VM_H_ 1#ifndef _VM_H_
2#define _VM_H_ 2#define _VM_H_
3#include <stdint.h> 3#include <stdint.h>
4#include <sys/types.h>
4 5
5typedef struct VMMapping { 6typedef struct VMMapping {
6 void *begin; 7 void *begin;
@@ -24,4 +25,5 @@ VMMapping* parse_vmmap (int pid);
24 25
25MemscanResult* memscan(int pid, uint8_t *byte_seq, uint64_t byte_seq_len); 26MemscanResult* memscan(int pid, uint8_t *byte_seq, uint64_t byte_seq_len);
26 27
28void memwrite(int pid, void *address, uint8_t *data, size_t data_len);
27#endif // _VM_H_ 29#endif // _VM_H_