You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PSKDM/nasa-mapper/mapper_ctx/mapper_ctx.hpp

19 lines
535 B

4 years ago
#include "../mem_ctx/mem_ctx.hpp"
#include "../pe_image/pe_image.h"
namespace nasa
4 years ago
{
class mapper_ctx
{
public:
explicit mapper_ctx(nasa::mem_ctx& map_into, nasa::mem_ctx& map_from);
auto map(std::vector<std::uint8_t>& raw_image)->std::pair<void*, void*>;
void call_entry(void* drv_entry, void** hook_handler) const;
4 years ago
private:
std::uint16_t pml4_idx;
auto allocate_driver(std::vector<std::uint8_t>& raw_image)->std::pair<void*, void*>;
4 years ago
void make_kernel_access(void* drv_base);
nasa::mem_ctx map_into, map_from;
4 years ago
};
}