Update README.md

merge-requests/1/merge
xerox 4 years ago
parent bd6e4b598e
commit 6a482669ab

@ -14,12 +14,6 @@ Link to write up can be found [here](https://back.engineering/post/virtual-memor
# example
```cpp
#include <iostream>
#include "kernel_ctx/kernel_ctx.h"
#include "mem_ctx/mem_ctx.hpp"
int __cdecl main(int argc, char** argv)
{
// only time driver needs to be loaded is to init physmeme/kernel_ctx...
nasa::load_drv();
nasa::kernel_ctx kernel;
@ -38,8 +32,6 @@ int __cdecl main(int argc, char** argv)
std::cout << "[+] base address pdpte: " << std::hex << my_proc[{module_base.pml4_index, module_base.pdpt_index}].value << std::endl;
std::cout << "[+] base address pde: " << std::hex << my_proc[{module_base.pml4_index, module_base.pdpt_index, module_base.pd_index}].value << std::endl;
std::cout << "[+] base address pte: " << std::hex << my_proc[{module_base.pml4_index, module_base.pdpt_index, module_base.pd_index, module_base.pt_index}].value << std::endl;
std::cin.get();
}
```
result:

Loading…
Cancel
Save