diff options
| author | Quentin LADEVIE <qladevie@wanadev.fr> | 2025-04-29 23:28:52 +0200 |
|---|---|---|
| committer | Quentin LADEVIE <qladevie@wanadev.fr> | 2025-04-29 23:28:52 +0200 |
| commit | f8c92cfa9eeb82a608d409cac70d9d2533ab79d8 (patch) | |
| tree | b948402c24dc47a3e33f9f11b1caf7100d4ed115 /include | |
| parent | 4ff029903b3d12905f171b98da9066ce7d6a5632 (diff) | |
Compile files one by one
Diffstat (limited to 'include')
| -rw-r--r-- | include/events.h | 19 | ||||
| -rw-r--r-- | include/module.h | 19 | ||||
| -rw-r--r-- | include/parser.h | 4 | ||||
| -rw-r--r-- | include/pdb.h | 1 | ||||
| -rw-r--r-- | include/utils.h | 23 |
5 files changed, 66 insertions, 0 deletions
diff --git a/include/events.h b/include/events.h new file mode 100644 index 0000000..65131c6 --- /dev/null +++ b/include/events.h @@ -0,0 +1,19 @@ +#pragma once + +extern void handle_create_process(); + +extern void handle_create_thread(); + +extern void handle_exception(); + +extern void handle_exit_process(); + +extern void handle_exit_thread(); + +extern void handle_load_dll(); + +extern void handle_unload_dll(); + +extern void handle_output_debug_string(); + +extern void handle_rip(); diff --git a/include/module.h b/include/module.h new file mode 100644 index 0000000..8a1858f --- /dev/null +++ b/include/module.h @@ -0,0 +1,19 @@ +#pragma once + +#include <Windows.h> + +#include "types.h" + +struct module { + void* base_addr; + IMAGE_DOS_HEADER dos_header; + IMAGE_NT_HEADERS64 nt_header; + u8 name[256U]; +}; + +extern struct module modules[64U]; +extern u64 modules_list; + +extern u8 add_module(); + +extern void remove_module(u8 index); diff --git a/include/parser.h b/include/parser.h new file mode 100644 index 0000000..1f93aac --- /dev/null +++ b/include/parser.h @@ -0,0 +1,4 @@ +#pragma once + +#include "types.h" +extern u8 interpreter(const char* str_cmd, size_t str_cmd_len); diff --git a/include/pdb.h b/include/pdb.h new file mode 100644 index 0000000..eee19ae --- /dev/null +++ b/include/pdb.h @@ -0,0 +1 @@ +extern void open_pdb(const char* pdb_path); diff --git a/include/utils.h b/include/utils.h new file mode 100644 index 0000000..738ba9f --- /dev/null +++ b/include/utils.h @@ -0,0 +1,23 @@ +#pragma once + +#include "types.h" + +#if defined (_DEBUG) +#define assert(x) if (!(x)) __debugbreak(); +#else +#define assert(x) (x) +#endif + +void print(const char* format, ...); + +u8 is_alpha(char c); + +u8 is_decimal_digit(char c); + +u8 is_hexadecimal_digit(char c); + +void u64toa(u64 number, char* str, u32 base); + +u64 atou64(const char* str, u32 len); + +u8 read_memory(const void* addr, void* buffer, size_t size); |
