fixed some issues with crashes

master
_xeroxz 4 years ago
parent 3842f39352
commit 62d777f062

@ -61,10 +61,6 @@ namespace mapper
if (!drv_base || !drv_entry) if (!drv_base || !drv_entry)
return { mapper_error::init_failed, nullptr }; 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); mapper.call_entry(drv_entry, entry_data);
if (!vdm::unload_drv(drv_handle, drv_key)) if (!vdm::unload_drv(drv_handle, drv_key))
return { mapper_error::unload_error, nullptr }; return { mapper_error::unload_error, nullptr };

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

Binary file not shown.
Loading…
Cancel
Save