![]() |
Lucciefr
Lua code caving, injection and exploration framework
|
Various utility functions (not platform-specific, "portable") More...
Macros | |
#define | ISPRINT(c) ((c) >= 32 && (c) != 127) |
isprint(c) substitute More... | |
Functions | |
void | hexdump (const uint8_t *addr, size_t len) |
hex dump utility, prints len bytes from address addr | |
const char * | get_dll_path (void) |
return the full path to the dynamic library (dir + filename + extension) | |
const char * | get_dll_dir (void) |
return the DLL directory (without the filename, but including the trailing path separator) | |
void * | get_dll_image_base (void) |
retrieve the image base (memory address) of the dynamic library | |
bool | file_exists (const char *filename) |
test if a file (or directory) exists | |
Various utility functions (not platform-specific, "portable")
#define ISPRINT | ( | c | ) | ((c) >= 32 && (c) != 127) |
isprint(c) substitute
The standard function won't allow chars >= chr(128). We'll accept anything that's neither a control char nor DEL.