Documentation ¶
Index ¶
- Constants
- func CloseHandle(handle uintptr) error
- func ConvertSidToStringSidW(sid *SID) (string, error)
- func EnumProcesses(buffer *uint32, bufferSize uint32, needed *uint32) error
- func GetModuleFileNameExA(handle uintptr, buffer *byte, bufferSize uint32) (uintptr, error)
- func LookupAccountSidW(systemName string, sid *SID) (string, error)
- func NtQueryInformationProcess(handle uintptr, processInformationClass uintptr, processInformation *byte, ...) error
- func NtReadVirtualMemory(handle uintptr, baseAddress uintptr, buffer *byte, bufferSize uint32, ...) error
- func OpenProcess(desiredAccess uintptr, inheritHandle uint32, pid uint32) (uintptr, error)
- func OpenProcessToken(handle uintptr, desiredAccess uintptr) (uintptr, error)
- func RtlAdjustPrivilege(privilege uint32, enablePrivilege uint32, isThreadPrivilege uint32, ...) error
- type PROCESS_BASIC_INFORMATION
- type SID
- type SID_AND_ATTRIBUTES
- type TOKEN_USER
- type UNICODE_STRING
Constants ¶
View Source
const ( SE_DEBUG_PRIVILEGE = uint32(20) STANDARD_RIGHTS_REQUIRED = uintptr(0xF0000) SYNCHRONIZE = uintptr(0x00100000) PROCESS_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | uintptr(0xFFFF) TOKEN_QUERY = uintptr(8) TIC_TOKEN_USER = uintptr(1) )
Variables ¶
This section is empty.
Functions ¶
func CloseHandle ¶
func ConvertSidToStringSidW ¶
func GetModuleFileNameExA ¶
func NtReadVirtualMemory ¶
func OpenProcess ¶
func OpenProcessToken ¶
Types ¶
type SID_AND_ATTRIBUTES ¶
type TOKEN_USER ¶
type TOKEN_USER struct {
User SID_AND_ATTRIBUTES
}
func GetTokenInformation ¶
func GetTokenInformation(thandle uintptr, tokenInformationClass uintptr) (*TOKEN_USER, error)
type UNICODE_STRING ¶
Click to show internal directories.
Click to hide internal directories.