mimikatz/modules/rpc/kull_m_rpc_dpapi-entries.c
Benjamin DELPY b008188f9f Big update :)
[new] mimikatz & mimilib **very** experimental support for ARM64
[better] code for Mifare protocol
[better] code for sekurlsa WinDBG plugin (credential keys, still not good enough)
[new] mimilib sub authentication package for @vletoux with 'bad password knocking' and magic password
[new] mimikatz: unmarshalling usernames when marshalled
[fix] mimikatz SR98/RDM/Busylight could previously crash
[fix #184] again and again ;)
[fix #172] swscanf_s VS ARRAYSIZE macro
[fix #127] stdout/stdin/stderr vs modern Visual Studio and Windows XP support (thank you @Crypt0-M3lon)
[code] refactor for defined / !defined
2019-03-25 01:57:56 +01:00

63 lines
5.8 KiB
C

#include "kull_m_rpc_dpapi-entries.h"
#if defined(_M_X64) || defined(_M_ARM64) // TODO:ARM64
#define _dpapi2Dentries_MIDL_TYPE_FORMAT_STRING_SIZE 219
#define _dpapi2Dentries_MIDL_TYPE_FORMAT_OFFSET 188
#elif defined(_M_IX86)
#define _dpapi2Dentries_MIDL_TYPE_FORMAT_STRING_SIZE 273
#define _dpapi2Dentries_MIDL_TYPE_FORMAT_OFFSET 228
#endif
typedef struct _dpapi2Dentries_MIDL_TYPE_FORMAT_STRING {
SHORT Pad;
UCHAR Format[_dpapi2Dentries_MIDL_TYPE_FORMAT_STRING_SIZE];
} dpapi2Dentries_MIDL_TYPE_FORMAT_STRING;
extern const dpapi2Dentries_MIDL_TYPE_FORMAT_STRING dpapi2Dentries__MIDL_TypeFormatString;
static const RPC_CLIENT_INTERFACE DPAPIEntries___RpcClientInterface = {sizeof(RPC_CLIENT_INTERFACE), {{0xa89c7745, 0x786b, 0x4d4e, {0x8d, 0x34, 0xc6, 0x8e, 0x8e, 0xc6, 0xc5, 0xfb}}, {1, 0}}, {{0x8a885d04, 0x1ceb, 0x11c9, {0x9f, 0xe8, 0x08, 0x00, 0x2b, 0x10, 0x48, 0x60}}, {2, 0}}, 0, 0, 0, 0, 0, 0x00000000};
static const MIDL_TYPE_PICKLING_INFO __MIDL_TypePicklingInfo = {0x33205054, 0x3, 0, 0, 0,};
static RPC_BINDING_HANDLE DPAPIEntries__MIDL_AutoBindHandle;
static const MIDL_STUB_DESC DPAPIEntries_StubDesc = {(void *) &DPAPIEntries___RpcClientInterface, MIDL_user_allocate, MIDL_user_free, &DPAPIEntries__MIDL_AutoBindHandle, 0, 0, 0, 0, dpapi2Dentries__MIDL_TypeFormatString.Format, 1, 0x60000, 0, 0x8000253, 0, 0, 0, 0x1, 0, 0, 0};
size_t KUHL_M_DPAPI_ENTRIES_AlignSize(handle_t _MidlEsHandle, KUHL_M_DPAPI_ENTRIES * _pType)
{
return NdrMesTypeAlignSize2(_MidlEsHandle, (PMIDL_TYPE_PICKLING_INFO) &__MIDL_TypePicklingInfo, &DPAPIEntries_StubDesc, (PFORMAT_STRING) &dpapi2Dentries__MIDL_TypeFormatString.Format[_dpapi2Dentries_MIDL_TYPE_FORMAT_OFFSET], _pType);
}
void KUHL_M_DPAPI_ENTRIES_Encode(handle_t _MidlEsHandle, KUHL_M_DPAPI_ENTRIES * _pType)
{
NdrMesTypeEncode2(_MidlEsHandle, (PMIDL_TYPE_PICKLING_INFO) &__MIDL_TypePicklingInfo, &DPAPIEntries_StubDesc, (PFORMAT_STRING) &dpapi2Dentries__MIDL_TypeFormatString.Format[_dpapi2Dentries_MIDL_TYPE_FORMAT_OFFSET], _pType);
}
void KUHL_M_DPAPI_ENTRIES_Decode(handle_t _MidlEsHandle, KUHL_M_DPAPI_ENTRIES * _pType)
{
NdrMesTypeDecode2(_MidlEsHandle, (PMIDL_TYPE_PICKLING_INFO) &__MIDL_TypePicklingInfo, &DPAPIEntries_StubDesc, (PFORMAT_STRING) &dpapi2Dentries__MIDL_TypeFormatString.Format[_dpapi2Dentries_MIDL_TYPE_FORMAT_OFFSET], _pType);
}
void KUHL_M_DPAPI_ENTRIES_Free(handle_t _MidlEsHandle, KUHL_M_DPAPI_ENTRIES * _pType)
{
NdrMesTypeFree2(_MidlEsHandle, (PMIDL_TYPE_PICKLING_INFO) &__MIDL_TypePicklingInfo, &DPAPIEntries_StubDesc, (PFORMAT_STRING) &dpapi2Dentries__MIDL_TypeFormatString.Format[_dpapi2Dentries_MIDL_TYPE_FORMAT_OFFSET], _pType);
}
#if defined(_M_X64) || defined(_M_ARM64) // TODO:ARM64
static const dpapi2Dentries_MIDL_TYPE_FORMAT_STRING dpapi2Dentries__MIDL_TypeFormatString = {0, {
0x00, 0x00, 0x1d, 0x00, 0x08, 0x00, 0x01, 0x5b, 0x15, 0x03, 0x10, 0x00, 0x08, 0x06, 0x06, 0x4c, 0x00, 0xf1, 0xff, 0x5b, 0x1d, 0x00, 0x14, 0x00, 0x01, 0x5b, 0x15, 0x03, 0x24, 0x00, 0x4c, 0x00,
0xe8, 0xff, 0x4c, 0x00, 0xf0, 0xff, 0x5c, 0x5b, 0x21, 0x03, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x01, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x12, 0x00, 0xe0, 0xff, 0x5c, 0x5b, 0x1d, 0x00,
0x10, 0x00, 0x01, 0x5b, 0x1a, 0x03, 0x90, 0x00, 0x00, 0x00, 0x22, 0x00, 0x08, 0x4c, 0x00, 0xb9, 0xff, 0x40, 0x36, 0x4c, 0x00, 0xe9, 0xff, 0x4c, 0x00, 0xbb, 0xff, 0x4c, 0x00, 0xb7, 0xff, 0x4c,
0x00, 0xb3, 0xff, 0x4c, 0x00, 0xd9, 0xff, 0x4c, 0x00, 0xab, 0xff, 0x5b, 0x12, 0x08, 0x25, 0x5c, 0x21, 0x03, 0x00, 0x00, 0x19, 0x00, 0x10, 0x00, 0x01, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
0x12, 0x00, 0xc2, 0xff, 0x5c, 0x5b, 0x1b, 0x00, 0x01, 0x00, 0x19, 0x00, 0x14, 0x00, 0x01, 0x00, 0x01, 0x5b, 0x1a, 0x03, 0x20, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x4c, 0x00, 0x6c, 0xff, 0x08, 0x08,
0x36, 0x5b, 0x12, 0x00, 0xe2, 0xff, 0x21, 0x03, 0x00, 0x00, 0x19, 0x00, 0x20, 0x00, 0x01, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x12, 0x00, 0xda, 0xff, 0x5c, 0x5b, 0x1a, 0x03, 0x30, 0x00,
0x00, 0x00, 0x0c, 0x00, 0x08, 0x40, 0x36, 0x08, 0x40, 0x36, 0x08, 0x40, 0x36, 0x5b, 0x12, 0x00, 0x58, 0xff, 0x12, 0x00, 0x9c, 0xff, 0x12, 0x00, 0xce, 0xff, 0x00,
}};
#elif defined(_M_IX86)
static const dpapi2Dentries_MIDL_TYPE_FORMAT_STRING dpapi2Dentries__MIDL_TypeFormatString = {0, {
0x00, 0x00, 0x1d, 0x00, 0x08, 0x00, 0x01, 0x5b, 0x15, 0x03, 0x10, 0x00, 0x08, 0x06, 0x06, 0x4c, 0x00, 0xf1, 0xff, 0x5b, 0x1d, 0x00, 0x14, 0x00, 0x01, 0x5b, 0x15, 0x03, 0x24, 0x00, 0x4c, 0x00,
0xe8, 0xff, 0x4c, 0x00, 0xf0, 0xff, 0x5c, 0x5b, 0x1b, 0x03, 0x04, 0x00, 0x19, 0x00, 0x00, 0x00, 0x01, 0x00, 0x4b, 0x5c, 0x48, 0x49, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x12, 0x00, 0xd8, 0xff, 0x5b, 0x08, 0x5c, 0x5b, 0x1d, 0x00, 0x10, 0x00, 0x01, 0x5b, 0x16, 0x03, 0x88, 0x00, 0x4b, 0x5c, 0x46, 0x5c, 0x14, 0x00, 0x14, 0x00, 0x12, 0x08, 0x25, 0x5c, 0x5b, 0x08,
0x4c, 0x00, 0xa6, 0xff, 0x08, 0x4c, 0x00, 0xe1, 0xff, 0x4c, 0x00, 0xa9, 0xff, 0x4c, 0x00, 0xa5, 0xff, 0x4c, 0x00, 0xa1, 0xff, 0x4c, 0x00, 0xd1, 0xff, 0x4c, 0x00, 0x99, 0xff, 0x5b, 0x1b, 0x03,
0x04, 0x00, 0x19, 0x00, 0x08, 0x00, 0x01, 0x00, 0x4b, 0x5c, 0x48, 0x49, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0xb6, 0xff, 0x5b, 0x08, 0x5c, 0x5b, 0x1b, 0x00,
0x01, 0x00, 0x19, 0x00, 0x14, 0x00, 0x01, 0x00, 0x01, 0x5b, 0x16, 0x03, 0x1c, 0x00, 0x4b, 0x5c, 0x46, 0x5c, 0x18, 0x00, 0x18, 0x00, 0x12, 0x00, 0xe6, 0xff, 0x5b, 0x4c, 0x00, 0x4b, 0xff, 0x08,
0x08, 0x08, 0x5c, 0x5b, 0x1b, 0x03, 0x04, 0x00, 0x19, 0x00, 0x10, 0x00, 0x01, 0x00, 0x4b, 0x5c, 0x48, 0x49, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0xcc, 0xff,
0x5b, 0x08, 0x5c, 0x5b, 0x16, 0x03, 0x18, 0x00, 0x4b, 0x5c, 0x46, 0x5c, 0x04, 0x00, 0x04, 0x00, 0x12, 0x00, 0x36, 0xff, 0x46, 0x5c, 0x0c, 0x00, 0x0c, 0x00, 0x12, 0x00, 0x82, 0xff, 0x46, 0x5c,
0x14, 0x00, 0x14, 0x00, 0x12, 0x00, 0xbe, 0xff, 0x5b, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x5b, 0x00,
}};
#endif