-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtoken.h
33 lines (25 loc) · 965 Bytes
/
token.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include "CmdInterface.h"
DECLARE_CMD(sid)
DECLARE_CMD(token)
DECLARE_CMD(add_privilege)
tuple<string, string> dump_sid(size_t sid_addr);
size_t get_sid_attr_hash_item(size_t addr, size_t index);
size_t get_sid_attr_array_item(size_t sid_addr, size_t count, size_t index);
string getWellKnownAccount(const string& sidText);
void dump_token(size_t token_addr);
string dump_luid(size_t addr);
string dump_acl(size_t acl_addr, string type_name = "File");
string dump_privilege(size_t addr);
string dump_privileges_by_bitmap(size_t bitmap);
string privilege_bit_to_text(size_t bit_offset);
string dump_sid_attr_hash(size_t addr);
string dump_sid_attr_array(size_t sid_addr, size_t count);
void dump_sdr(size_t sd_addr, string type_name);
void token_privilege_add(size_t token_addr, size_t bitmap);
string
getAceMaskStr(
__in const size_t ace_mask,
__in string type_name = "File",
__in bool pureText = false
);