Browse Source

fixed some issues with crashes

master
_xeroxz 2 years ago
parent
commit
62d777f062
  1. 4
      PSKDM/map_driver.cpp
  2. 2
      PSKDM/mapper_ctx/mapper_ctx.cpp
  3. BIN
      um-example/PSKDM.lib

4
PSKDM/map_driver.cpp

@ -61,10 +61,6 @@ namespace mapper
if (!drv_base || !drv_entry)
return { mapper_error::init_failed, nullptr };
std::printf("[+] driver base -> 0x%p\n", drv_base);
std::printf("[+] driver entry -> 0x%p\n", drv_entry);
std::getchar();
mapper.call_entry(drv_entry, entry_data);
if (!vdm::unload_drv(drv_handle, drv_key))
return { mapper_error::unload_error, nullptr };

2
PSKDM/mapper_ctx/mapper_ctx.cpp

@ -33,8 +33,6 @@ namespace nasa
auto [drv_ppml4e, drv_pml4e] = map_from->get_pml4e(drv_alloc);
make_kernel_access(drv_alloc);
map_from->set_pml4e(drv_ppml4e, pml4e{ NULL });
drv_pml4e.present = true;
drv_pml4e.nx = false;
drv_pml4e.user_supervisor = false;

BIN
um-example/PSKDM.lib

Binary file not shown.
Loading…
Cancel
Save