GithubHelp home page GithubHelp logo

thecruz / kdmapper Goto Github PK

View Code? Open in Web Editor NEW
1.8K 1.8K 481.0 233 KB

KDMapper is a simple tool that exploits iqvw64e.sys Intel driver to manually map non-signed drivers in memory

License: MIT License

C++ 100.00%

kdmapper's People

Contributors

blobbyblo avatar dalion971 avatar daniel-dron avatar gabrielbigardi avatar jerem584 avatar llxiaoyuan avatar notdiscordofficial avatar radoncoding avatar thecruz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kdmapper's Issues

Why does it just blue screen every time I load my driver?

I am just confused why it fails to load my driver every time. I am on 21h1 and am running a UserMode driver for an injection method, does not want to work. If anyone might have an explanation that would be great!
Edit: I have secure boot off, virtualization off and the BSOD message is KERNEL_SECURITY_CHECK_FAILURE

already running issue

have you noticed in some instances it states the intel driver is already running and bails, can you apply a fix for this because it means whatever intel driver is running needs to be unloaded for kdmapper to then work.

also it would be good to have a check in place that kdmapper will only work once to avoid it potentially mapping a driver multiple times.

have you thought of adding cleaning into this kdmapper?

[!!] Crash at addr 0x00007FF6DBA0C9A5 by 0xc0000005

keep getting crash when launching

[<] Loading vulnerable driver, Name: vplfLaemxNtg
[+] NtLoadDriver Status 0x0
[+] PiDDBLock Ptr 0xfffff8064012323c
[+] PiDDBCacheTable Ptr 0xfffff80640123378
[+] PiDDBLock Locked
[+] PiDDBCacheTable result -> TimeStamp: 5284eac3
[+] Found Table Entry = 0xFFFF8A026C2AA4D0
[+] PiDDBCacheTable Cleaned
[+] g_KernelHashBucketList Found 0xFFFFF80640EBC080
[+] g_HashCacheLock Locked
[+] Found In g_KernelHashBucketList: vplfLaemxNtg
[+] g_KernelHashBucketList Cleaned
[+] MmUnloadedDrivers Cleaned: vplfLaemxNtg
[+] Image base has been allocated at 0xFFFFD08FD7FE0000
[+] Skipped 0x1000 bytes of PE Header
[!!] Crash at addr 0x00007FF6DBA0C9A5 by 0xc0000005
[<] Unloading vulnerable driver
[+] NtUnloadDriver Status 0x0
[+] Vul driver data destroyed before unlink

the application was unable to start correctly 0xc00007b

I have all the runtimes installed, directx runtime aswell no clue why im getting this error. Got runtime dll errors and msvcp errors before installing runtimes now i just get "the application was unable to start correctly 0xc00007b"
Any clue why?

system_service_exception blackbone driver

hi, I compiled BlackBoneDrv10 project with security check turned off (/GS-) and with an entry point (DriverEntry)
when I load the blackbone driver using kdmapper I have a bsod 0x0000003B (SYSTEM_SERVICE_EXCEPTION)

win10 19043
please help :)

PFN BSOD

If i use --mdl and I interact in anyway with the mdlptr i get a SYSTEM_SERVICE_EXCEPTION bsod. I have no idea why though. Here is my DriverEntry. If you know why tf its happening please help.

NTSTATUS DriverEntry(ULONG64* useless1, ULONG64* useless2, ULONG64 allocationPtr, ULONG64 allocationSize, ULONG64 mdlptr) { UNREFERENCED_PARAMETER(useless1); UNREFERENCED_PARAMETER(useless2); UNREFERENCED_PARAMETER(allocationPtr); UNREFERENCED_PARAMETER(allocationSize); PMDL mdl = (PMDL)mdlptr; return true; }

Failed to map driver

[<] Loading vulnerable driver, Name: QvxVqegYVXXFT
[+] NtLoadDriver Status 0x0
[-] Can't find pattern
[-] Warning no PiDDBCacheTable Found
[-] Failed to ClearPiDDBCacheTable
[<] Unloading vulnerable driver
[+] NtUnloadDriver Status 0x0
[+] Vul driver data destroyed before unlink

This may be due to my windows version being Windows 11 22449.1000 can I get a confirmation?

Getting STATUS_INSUFFICIENT_RESOURCES

Hey do you know why I am getting a STATUS_INSUFFICIENT_RESOURCES when calling NtLoadDriver?

I saw in the closed tickets that someone had the same issue but he didn't posted any solution.

Bypass custom entry point

Hey,

As you know setting a custom entry point remove the "crtstartup" < at least in usermode

But here's two things that should work:

1- driver export (would work fine)
2- trace crt startup to get the real main and so skip the check and so the bsod

Here's just theory but I would like to know what you guys think,

Ill maybe write a small test to skip crt startup and make a PR once I got it to work

Thanks :)

Failed to register and start service for the vulnerable driver

Hello

Cannot seem to get this to work at all, no anti-virus running, windows defender completely disabled.

[<] Loading vulnerable driver, Name: tZhrseVFgBikCWt [+] NtLoadDriver Status 0xc000009a [-] Failed to register and start service for the vulnerable driver

as NTLoadDriver is displaying - STATUS_INSUFFICIENT_RESOURCES

Compiled for Release Mode, x64 - Winver 21H1 19043.110

(Fixed)

please teach me

If I try to use PsSetCreateProcessNotifyRoutine, it will return 0xc0000022. If I use KsInitialize, it will directly blue screen. Is there any solution? thanks!

Using custom arguments

When calling

HANDLE iqvw64e_device_handle, unsigned char* data, ULONG64 param1, ULONG64 param2, bool PassAllocationAddressAsFirstParam, NTSTATUS* exitCode
kdmapper::MapDriver(iqvw64e_device_handle, base, 0, 0, true, &exitCode)

How I am able to parse the arguments aka the base address correctly inside the driver?
I tried like that:

NTSTATUS DriverEntry(PVOID a1, PVOID KBase)
{
	DbgPrintEx(0, 0, "a1: %p / KBase: %p \n", a1, KBase);
	return STATUS_SUCCESS;
}

altough both addresses were 0.
Thanks very much

Driver Enforcement

hello I would like to know if it is possible to disable driver enforcement instead of mapping a driver?

Windows 11 official release

Hi, i was planning to use kdmapper tool, but i'm currently on the windows 11 pro official release (windows 11 21h2 22000.51), is there any plan to add support to this windows version any time soon ? Thanks.

wrong?

if (!intel_driver::CallKernelFunction(iqvw64e_device_handle, &status, address_of_entry_point, (PassAllocationAddressAsFirstParam ? realBase : param1), param2)) {

i think this line is wrong, as i just BSOD all the time until i looked at the code, i think it should be the following:
if (!intel_driver::CallKernelFunction(iqvw64e_device_handle, &status, address_of_entry_point, (mdlMode ? mdlptr : (PassAllocationAddressAsFirstParam ? realBase : param1)), param2)) {

otherwise mdl mode will BSOD

I got kernel-security-check-failure BSOD

#include <ntifs.h>
#include <ntddk.h>

extern "C" NTSTATUS DriverEntry(unsigned __int64 a1, unsigned __int64 a2)
{
DbgPrintEx(0, 0, "yes\n");

return STATUS_SUCCESS;

}
This is my code
Everything is set by default. What did I do wrong

MouClassInputInjection

Hello!

Firstly, this is not an issue. I was hoping you might be able to help me / give me some insight as to why I can't load this driver with kdmapper? I'm new to driver programming, so the issue may be obvious.
The driver loads just fine if loaded normally, with test signing enabled through sc.exe

The rest of the details I've mentioned here:
changeofpace/MouClassInputInjection#11

nothing work(no output)

hello, after my last windows 11 update is the kdmapper not working(no console output) the problem is only on my pc. My frind has testet it.

i have tryed my own driver & the helloworld driver.

My system: I7-7700k, Windows 11 21H2 22000.469

Virtual Machine Issue

It works on my main computer but when I use it on my vmware it wont go through.

On VMWare:
Screenshot_1

VMware windows version:
1

My main computer windows version:
2

PC Crashes!

Hey,
So everything is working fine but if try to make a DriverUnload function and register it and then run kdmapper, my pc crashes!
can some one help me please?

X Patch

cannot load driver with iocreatedevice

my driver entry starts a thread, which is doing init. the thread routine is like:
void driver_initialize(PVOID pcontext)
{
PInit_Context p = (PInit_Context)pcontext;
auto status = STATUS_SUCCESS;
PDRIVER_OBJECT driver_obj = p->driver_obj;
PUNICODE_STRING registery_path = p->registery_path;

DbgPrint("call driver_initialize");
UNICODE_STRING  sym_link, dev_name;
PDEVICE_OBJECT  dev_obj;

RtlInitUnicodeString(&dev_name, NT_DEVICE_NAME);
DbgPrint("%08x!!", driver_obj);
DbgPrint("%08x!!", registery_path);
status = IoCreateDevice(driver_obj, 0, &dev_name, FILE_DEVICE_UNKNOWN, FILE_DEVICE_SECURE_OPEN, FALSE, &dev_obj);	

}

But IoCreateDevice always crashes. when loaded with sc start, it is not crashed.

and without iocreatedevice, it can also be loaded by kdmapper.

so my question is, is this kdmapper support driver with IoCreateDevice call?

a workable sample driver for kdmapper is appreciated.

Failed to get export win32kfull.NtGdiGetCOPPCompatibleOPMInformation

I've been looking throughout several forums and couldn't find any help regarding this issue, Im new to using this method and Im pretty much a newb in the scene as well. This was pretty much an already put together set of skills for Apex which I followed the instructions of to get it to run, AV off, ran as Admin but it puts out the following:

C:\Users\Blank\Desktop\Skills>kdmapper driver.sys
[<] Loading vulnerable driver
[-] Failed to get export win32kfull.NtGdiGetCOPPCompatibleOPMInformation
[-] Failed to allocate remote image in kernel
[-] Failed to map driver.sys
[<] Unloading vulnerable driver

I have no clue and spend a day now trying to find a post or anything related to it that could help

Lag system

When use --mdl and virtualization(in Bios) + Hyper-v(in Windows) is enabled system start lag
Windows 10 20H2 19042.1052 (not VM)

Malware Detected

I am trying to implement this in my project but when the kdmapper.exe is always detecting a false malware positive. I know it isn't but that's not what others think as on virustotal it's full of malware.

Application Error

The application was unable to start correctly (0xc000007b).

Does anyone know what's wrong?

Potential bug causes the driver to get loaded infinite times!

If the execution of the driver takes too long (more than a few seconds), the mapper keeps mapping a new image until the first one returns its status!

Calling KeDelayExecutionThread with Interval about -10000000 (1sec) can sometimes replicate the bug.

Note: It does not always happen, i.e. even if the driver is the exact same, it still doesn't always occur.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.