-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[new] mimikatz misc::printnightmare now uses [ms-par] instead of [ms-…
…rprn], thank you @cube0x0
- Loading branch information
1 parent
c212760
commit 9ad02da
Showing
6 changed files
with
254 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#pragma once | ||
#include "kull_m_rpc.h" | ||
#include "kull_m_rpc_ms-rprn.h" | ||
|
||
const UUID PAR_ObjectUUID; | ||
|
||
typedef struct _SPLCLIENT_INFO_1 { | ||
DWORD dwSize; | ||
DWORD dwBuildNum; | ||
DWORD dwMajorVersion; | ||
DWORD dwMinorVersion; | ||
unsigned short wProcessorArchitecture; | ||
} SPLCLIENT_INFO_1; | ||
|
||
typedef struct _SPLCLIENT_INFO_2 { | ||
LONG_PTR notUsed; | ||
} SPLCLIENT_INFO_2; | ||
|
||
typedef struct _SPLCLIENT_INFO_3 { | ||
unsigned int cbSize; | ||
DWORD dwFlags; | ||
DWORD dwSize; | ||
wchar_t *pMachineName; | ||
wchar_t *pUserName; | ||
DWORD dwBuildNum; | ||
DWORD dwMajorVersion; | ||
DWORD dwMinorVersion; | ||
unsigned short wProcessorArchitecture; | ||
unsigned __int64 hSplPrinter; | ||
} SPLCLIENT_INFO_3; | ||
|
||
typedef struct _SPLCLIENT_CONTAINER { | ||
DWORD Level; | ||
union { | ||
SPLCLIENT_INFO_1 *pClientInfo1; | ||
SPLCLIENT_INFO_2 *pNotUsed; | ||
SPLCLIENT_INFO_3 *pClientInfo3; | ||
} ClientInfo; | ||
} SPLCLIENT_CONTAINER; | ||
|
||
DWORD RpcAsyncOpenPrinter(handle_t hRemoteBinding, wchar_t *pPrinterName, PRINTER_HANDLE *pHandle, wchar_t *pDatatype, DEVMODE_CONTAINER *pDevModeContainer, DWORD AccessRequired, SPLCLIENT_CONTAINER *pClientInfo); | ||
DWORD RpcAsyncClosePrinter(PRINTER_HANDLE *phPrinter); | ||
DWORD RpcAsyncAddPrinterDriver(handle_t hRemoteBinding, wchar_t *pName, DRIVER_CONTAINER *pDriverContainer, DWORD dwFileCopyFlags); | ||
DWORD RpcAsyncEnumPrinterDrivers(handle_t hRemoteBinding, wchar_t *pName, wchar_t *pEnvironment, DWORD Level, unsigned char *pDrivers, DWORD cbBuf, DWORD *pcbNeeded, DWORD *pcReturned); | ||
|
||
extern RPC_IF_HANDLE IRemoteWinspool_v1_0_c_ifspec; |
Oops, something went wrong.