|
|
@ -21,11 +21,6 @@ int __cdecl main(int argc, char** argv)
|
|
|
|
physmeme::drv_image image(drv_buffer);
|
|
|
|
physmeme::drv_image image(drv_buffer);
|
|
|
|
physmeme::kernel_ctx ctx;
|
|
|
|
physmeme::kernel_ctx ctx;
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// we dont need the driver loaded anymore
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
physmeme::unload_drv();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// lambdas used for fixing driver image
|
|
|
|
// lambdas used for fixing driver image
|
|
|
|
//
|
|
|
|
//
|
|
|
@ -87,6 +82,7 @@ int __cdecl main(int argc, char** argv)
|
|
|
|
// zero driver headers
|
|
|
|
// zero driver headers
|
|
|
|
//
|
|
|
|
//
|
|
|
|
ctx.zero_kernel_memory(pool_base, image.header_size());
|
|
|
|
ctx.zero_kernel_memory(pool_base, image.header_size());
|
|
|
|
|
|
|
|
physmeme::unload_drv();
|
|
|
|
printf("[=] press enter to close\n");
|
|
|
|
printf("[=] press enter to close\n");
|
|
|
|
std::cin.get();
|
|
|
|
std::cin.get();
|
|
|
|
}
|
|
|
|
}
|