Lucciefr
Lua code caving, injection and exploration framework
utils.h
Go to the documentation of this file.
1 
3 #ifndef UTILS_H
4 #define UTILS_H
5 
6 #include "bool.h"
7 #include <stddef.h>
8 #include <stdint.h>
9 
10 void hexdump(const uint8_t *addr, size_t len);
11 
12 const char *get_dll_path(void);
13 const char *get_dll_dir(void);
14 void *get_dll_image_base(void);
15 
16 bool file_exists(const char *filename);
17 
18 #endif // UTILS_H
void hexdump(const uint8_t *addr, size_t len)
hex dump utility, prints len bytes from address addr
Definition: utils.c:19
bool file_exists(const char *filename)
test if a file (or directory) exists
Definition: utils.c:68
const char * get_dll_dir(void)
return the DLL directory (without the filename, but including the trailing path separator) ...
Definition: utils.c:45
const char * get_dll_path(void)
return the full path to the dynamic library (dir + filename + extension)
Definition: utils.c:39
boolean data type and constants/macros
void * get_dll_image_base(void)
retrieve the image base (memory address) of the dynamic library
Definition: utils.c:63