aboutsummaryrefslogtreecommitdiff
path: root/Exfiltration/mimikatz-1.0/modules/mod_secacl.h
blob: 5e8aa04fb34fc8e75b723ad90082afe069be73c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*	Benjamin DELPY `gentilkiwi`
	http://blog.gentilkiwi.com
	benjamin@gentilkiwi.com
	Licence : http://creativecommons.org/licenses/by/3.0/fr/
*/
#pragma once
#include "globdefs.h"
#include <aclapi.h>
#include <sddl.h>

using namespace std;

class mod_secacl
{
public:
	static bool simpleSidToString(PSID Sid, wstring * String);
	static bool sidToStrSid(PSID Sid, wstring * strSid);
	static bool nullSdToHandle(PHANDLE monHandle, SE_OBJECT_TYPE monType = SE_KERNEL_OBJECT);
	static bool sidToName(PSID Sid, wstring * strName, wstring * domainName = NULL, wstring * systemName = NULL, SID_NAME_USE * usage = NULL);
	static bool tokenUser(HANDLE tokenHandle, wstring * strName, wstring * domainName = NULL, wstring * systemName = NULL, SID_NAME_USE * usage = NULL);

	static bool exchangeDupToken(HANDLE * tokenHandle);
	static bool addWorldToMimikatz(SC_HANDLE * monHandle);
};