MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / enablePrivileges

Function enablePrivileges

pkg/sys/privilege.go:112–116  ·  view source on GitHub ↗
(privs ...string)

Source from the content-addressed store, hash-verified

110}
111
112func enablePrivileges(privs ...string) {
113 var token windows.Token
114 _ = windows.OpenProcessToken(windows.CurrentProcess(), windows.TOKEN_ADJUST_PRIVILEGES|windows.TOKEN_QUERY, &token)
115 _ = adjustTokenPrivileges(token, PrivilegedEnabled, privs...)
116}
117
118func removePrivileges(privs ...string) {
119 var token windows.Token

Callers 2

SetDebugPrivilegeFunction · 0.85
SetTcbPrivilegeFunction · 0.85

Calls 1

adjustTokenPrivilegesFunction · 0.85

Tested by

no test coverage detected