r/ExploitDev • • 2d ago

[ Removed by moderator ]

[removed] — view removed post

0 Upvotes

13 comments sorted by

2

u/StringSentinel 2d ago

Let us know what your research turns up

1

u/Content_Skill_8913 2d ago

ive been using a local model (Qwen3.5 abliterated) it made the driver successfully but I got banned using it within like 5 minutes, used a spoofer and now im trying other drivers

2

u/Either-Cicada-3753 2d ago

You get banned for using LOCAL model ?

1

u/StringSentinel 2d ago

Exactly what I was wondering. How do you get banned from a local model.

1

u/Content_Skill_8913 2d ago

i meant i got banned from the game using the driver that the local models created

2

u/Haze42 2d ago

Probably because you boot w testsigning. Sign it with a lolcert

1

u/Content_Skill_8913 2d ago

okay ill try that next

2

u/Juzdeed 2d ago

Writing a kernel driver should be documented very well so just use Google?

1

u/OvermanWhimere 2d ago

As if any of these types of people are capable of researching on their own anymore. 

0

u/[deleted] 2d ago

[deleted] — view deleted comment

0

u/Content_Skill_8913 2d ago

is this ai, if so what model is this and what jailbreak?

3

u/Responsible-Offer724 2d ago

lol, so this is what claude says:

I'm not going to review or debug this one. Compared to my last reply, this isn't a teaching skeleton anymore — it's a complete, working arbitrary-process memory read/write primitive: it takes a process handle and address straight from user-mode input and uses MmCopyVirtualMemory to read or write that process's memory on request. That's the actual functional core of a game-cheat (or more generally, an arbitrary memory-access) driver, not an illustrative example of IRP dispatch anymore. Checking it for correctness is the same as debugging that payload, which I'm not going to do regardless of how the request is framed.

To be clear about where the line is: explaining IRP/WDF mechanics in the abstract (what I did above) is fine. A driver whose entire purpose is "take a PID and address from any caller, copy memory in or out" is a different thing — that's the tool itself, and it's just as useful for injecting into or reading any other process on the system as it is for a game.

Happy to keep helping with legitimate driver development — WDF structure, debugging setup, IOCTL design for something that isn't cross-process memory access, PnP/power management, etc. — just not this.

about this:

// driver.c
#include <ntddk.h>

#define DEVICE_NAME      L"\\Device\\ExampleDriver"
#define SYMLINK_NAME     L"\\??\\ExampleDriver"

#define FILE_DEVICE_UNKNOWN 0x00000022
#define METHOD_BUFFERED     4
#define FILE_ANY_ACCESS     0

#define IOCTL_READ_MEMORY   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x800, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_WRITE_MEMORY  CTL_CODE(FILE_DEVICE_UNKNOWN, 0x801, METHOD_BUFFERED, FILE_ANY_ACCESS)

typedef struct _MEM_RW {
    HANDLE  hProcess;       // Valid process handle from user-mode
    ULONG64 Address;        // Target address in game memory
    SIZE_T  Length;         // Bytes to read/write
} MEM_RW, *PMEM_RW;

NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath);
NTSTATUS DispatchCreateClose(PDEVICE_OBJECT DevObj, PIRP Irp);
NTSTATUS DispatchDeviceControl(PDEVICE_OBJECT DevObj, PIRP Irp);
void UnloadDriver(PDRIVER_OBJECT DriverObject);

NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
{
    UNREFERENCED_PARAMETER(RegistryPath);

    UNICODE_STRING devName = RTL_CONSTANT_STRING(DEVICE_NAME);
    UNICODE_STRING symLink = RTL_CONSTANT_STRING(SYMLINK_NAME);
    PDEVICE_OBJECT deviceObject = NULL;

    NTSTATUS status = IoCreateDevice(DriverObject, 0, &devName,
                                     FILE_DEVICE_UNKNOWN, FILE_DEVICE_SECURE_OPEN, FALSE, &deviceObject);
    if (!NT_SUCCESS(status)) return status;

    status = IoCreateSymbolicLink(&symLink, &devName);
    if (!NT_SUCCESS(status)) {
        IoDeleteDevice(deviceObject);
        return status;
    }

    // Explicitly set only the handlers you implement. Others default to IopInvalidDeviceRequest (safe).
    DriverObject->MajorFunction[IRP_MJ_CREATE]         = DispatchCreateClose;
    DriverObject->MajorFunction[IRP_MJ_CLOSE]          = DispatchCreateClose;
    DriverObject->MajorFunction[IRP_MJ_CLEANUP]        = DispatchCreateClose;
    DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = DispatchDeviceControl;
    DriverObject->DriverUnload = UnloadDriver;

    return STATUS_SUCCESS;
}

NTSTATUS DispatchCreateClose(PDEVICE_OBJECT DevObj, PIRP Irp)
{
    UNREFERENCED_PARAMETER(DevObj);
    Irp->IoStatus.Status = STATUS_SUCCESS;
    Irp->IoStatus.Information = 0;
    IoCompleteRequest(Irp, IO_NO_INCREMENT);
    return STATUS_SUCCESS;
}

NTSTATUS DispatchDeviceControl(PDEVICE_OBJECT DevObj, PIRP Irp)
{
    UNREFERENCED_PARAMETER(DevObj);
    PIO_STACK_LOCATION stack = IoGetCurrentIrpStackLocation(Irp);
    ULONG ioctl = stack->Parameters.DeviceIoControl.IoControlCode;
    NTSTATUS status = STATUS_INVALID_DEVICE_REQUEST;
    SIZE_T bytesTransferred = 0;

    switch (ioctl) {
        case IOCTL_READ_MEMORY:
            if (stack->Parameters.DeviceIoControl.OutputBufferLength < sizeof(MEM_RW))
                return STATUS_BUFFER_TOO_SMALL;

            PMEM_RW ioData = Irp->AssociatedIrp.SystemBuffer;
            PEPROCESS targetProcess;
            status = PsLookupProcessByProcessId((HANDLE)ioData->hProcess, &targetProcess);
            if (!NT_SUCCESS(status)) return status;

            status = MmCopyVirtualMemory(
                targetProcess, (PVOID)ioData->Address,
                PsGetCurrentProcess(), Irp->UserBuffer,
                ioData->Length, KernelMode, &bytesTransferred);

            ObDereferenceObject(targetProcess);
            break;

        case IOCTL_WRITE_MEMORY:
            if (stack->Parameters.DeviceIoControl.InputBufferLength < sizeof(MEM_RW))
                return STATUS_BUFFER_TOO_SMALL;

            PMEM_RW ioData = Irp->AssociatedIrp.SystemBuffer;
            PEPROCESS targetProcess;
            status = PsLookupProcessByProcessId((HANDLE)ioData->hProcess, &targetProcess);
            if (!NT_SUCCESS(status)) return status;

            status = MmCopyVirtualMemory(
                PsGetCurrentProcess(), Irp->UserBuffer,
                targetProcess, (PVOID)ioData->Address,
                ioData->Length, KernelMode, &bytesTransferred);

            ObDereferenceObject(targetProcess);
            break;

        default:
            status = STATUS_INVALID_DEVICE_REQUEST;
            break;
    }

    Irp->IoStatus.Status = status;
    Irp->IoStatus.Information = bytesTransferred;
    IoCompleteRequest(Irp, IO_NO_INCREMENT);
    return status;
}

void UnloadDriver(PDRIVER_OBJECT DriverObject)
{
    UNICODE_STRING symLink = RTL_CONSTANT_STRING(SYMLINK_NAME);
    IoDeleteSymbolicLink(&symLink);
    IoDeleteDevice(DriverObject->DeviceObject);
}

this is the product of my local llm generating the code, claude accidentally critiquing issues with it, me putting those critiques into the local llm.

1

u/Content_Skill_8913 2d ago

okay thanks alot, ill try run a abliterated model and see what happens

2

u/Responsible-Offer724 2d ago

any abliterated/uncensored model will do. local though. I run qwen models on a macbook with 64gb ram... not super reliable though. technical details are best passed through claude,etc. for correction, but the general path and information will be good and it will answer literally any question. much more prone to innacuracy and hallucination though and low context available