|
|
@ -13,7 +13,19 @@ paging table manipulation from user-mode. operations such as getting and setting
|
|
|
|
# example
|
|
|
|
# example
|
|
|
|
|
|
|
|
|
|
|
|
```cpp
|
|
|
|
```cpp
|
|
|
|
vdm::vdm_ctx vdm;
|
|
|
|
vdm::read_phys_t _read_phys =
|
|
|
|
|
|
|
|
[&](void* addr, void* buffer, std::size_t size) -> bool
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return vdm::read_phys(addr, buffer, size);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vdm::write_phys_t _write_phys =
|
|
|
|
|
|
|
|
[&](void* addr, void* buffer, std::size_t size) -> bool
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return vdm::write_phys(addr, buffer, size);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vdm::vdm_ctx vdm(_read_phys, _write_phys);
|
|
|
|
nasa::mem_ctx my_proc(vdm);
|
|
|
|
nasa::mem_ctx my_proc(vdm);
|
|
|
|
|
|
|
|
|
|
|
|
const auto ntoskrnl_base =
|
|
|
|
const auto ntoskrnl_base =
|
|
|
|