#ifndef _VM_H_ #define _VM_H_ #include typedef struct VMMapping { void *begin; void *end; uint8_t r:1; uint8_t w:1; uint8_t x:1; uint8_t s:1; uint8_t p:1; const char *name; struct VMMapping *next; } VMMapping; typedef struct MemscanResult { VMMapping *mapping; off_t offset; struct MemscanResult *next; } MemscanResult; VMMapping* parse_vmmap (int pid); MemscanResult* memscan(int pid, uint8_t *byte_seq, uint64_t byte_seq_len); #endif // _VM_H_