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.
21 lines
427 B
21 lines
427 B
#include <map>
|
|
#include "../mem_ctx/mem_ctx.hpp"
|
|
#include "../pe_image/pe_image.h"
|
|
|
|
namespace nasa
|
|
{
|
|
class injector_ctx
|
|
{
|
|
public:
|
|
injector_ctx(
|
|
nasa::mem_ctx& inject_into,
|
|
nasa::mem_ctx& inject_from
|
|
);
|
|
std::pair<void*, void*> inject(std::vector<std::uint8_t>& raw_image, const unsigned pml4_index = 179);
|
|
bool hook(void* present_hook);
|
|
private:
|
|
|
|
nasa::mem_ctx inject_into;
|
|
nasa::mem_ctx inject_from;
|
|
};
|
|
} |