mimikatz/mimidrv/globals.h
Benjamin DELPY 9e298f16e4 Welcom to Windows 10 LTSB & current
[remove] mimidrv & mimikatz kernel module: Process & Object callbacks remover are not anymore in the program
[internal] Windows 10 is now splitted in 1507 (LTSB) and 1511 (current)
[internal] mimidrv: Windows 10 support added
[internal] mimilib WinDBG module & mimikatz::sekurlsa: Windows 10 MSV / Kerberos Tickets are not specific anymore (offsets table)
[internal] Using KULL_M_MEMORY_GLOBAL_OWN_HANDLE instead of local variable in each function
2016-03-27 19:22:36 +02:00

51 lines
1.5 KiB
C

/* Benjamin DELPY `gentilkiwi`
http://blog.gentilkiwi.com
benjamin@gentilkiwi.com
Licence : https://creativecommons.org/licenses/by/4.0/
*/
#pragma once
#include <ntifs.h>
#include <fltkernel.h>
#include <ntddk.h>
#include <aux_klib.h>
#include <ntstrsafe.h>
#include <string.h>
#include "ioctl.h"
#define POOL_TAG 'kiwi'
#define MIMIDRV L"mimidrv"
#define kprintf(KiwiBuffer, Format, ...) (RtlStringCbPrintfExW(*(KiwiBuffer)->Buffer, *(KiwiBuffer)->szBuffer, (KiwiBuffer)->Buffer, (KiwiBuffer)->szBuffer, STRSAFE_NO_TRUNCATION, Format, __VA_ARGS__))
extern char * PsGetProcessImageFileName(PEPROCESS monProcess);
extern NTSYSAPI NTSTATUS NTAPI ZwSetInformationProcess (__in HANDLE ProcessHandle, __in PROCESSINFOCLASS ProcessInformationClass, __in_bcount(ProcessInformationLength) PVOID ProcessInformation, __in ULONG ProcessInformationLength);
extern NTSYSAPI NTSTATUS NTAPI ZwUnloadKey(IN POBJECT_ATTRIBUTES DestinationKeyName);
typedef struct _KIWI_BUFFER {
size_t * szBuffer;
PWSTR * Buffer;
} KIWI_BUFFER, *PKIWI_BUFFER;
typedef enum _KIWI_OS_INDEX {
KiwiOsIndex_UNK = 0,
KiwiOsIndex_XP = 1,
KiwiOsIndex_2K3 = 2,
KiwiOsIndex_VISTA = 3,
KiwiOsIndex_7 = 4,
KiwiOsIndex_8 = 5,
KiwiOsIndex_BLUE = 6,
KiwiOsIndex_10_1507 = 7,
KiwiOsIndex_10_1511 = 8,
KiwiOsIndex_MAX = 9,
} KIWI_OS_INDEX, *PKIWI_OS_INDEX;
#ifdef _M_IX86
#define EX_FAST_REF_MASK 0x07
#else
#define EX_FAST_REF_MASK 0x0f
#endif
#define KIWI_mask3bits(addr) (((ULONG_PTR) (addr)) & ~7)
KIWI_OS_INDEX KiwiOsIndex;