1
0
mirror of https://github.com/momo5502/hypervisor.git synced 2025-07-05 18:51:53 +00:00

Hook tests

This commit is contained in:
momo5502
2022-04-16 22:37:28 +02:00
parent 4c3e5d78ac
commit 77785486ae
6 changed files with 64 additions and 27 deletions

View File

@ -66,7 +66,13 @@ void unsafe_main(const int /*argc*/, char* /*argv*/[])
hook_request hook_request{};
hook_request.process_id = _pid; //GetCurrentProcessId();
hook_request.target_address = (void*)0x1401644A8; //"My Message!";
hook_request.target_address = (void*)0x14007DCF7; //"My Message!";
uint8_t buffer[1];
buffer[0] = 0xEB;
hook_request.source_data = buffer;
hook_request.source_data_size = 1;
input.assign(reinterpret_cast<uint8_t*>(&hook_request),
reinterpret_cast<uint8_t*>(&hook_request) + sizeof(hook_request));