Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- func AddRegKeyBinary(registryString string, path string, name string, value []byte) error
- func AddRegKeyDWORD(registryString string, path string, name string, value int64) error
- func AddRegKeyExpandedString(registryString string, path string, name string, value string) error
- func AddRegKeyQWORD(registryString string, path string, name string, value int64) error
- func AddRegKeyString(registryString string, path string, name string, value string) error
- func AddRegKeyStrings(registryString string, path string, name string, value []string) error
- func DelRegKey(registryString string, path string) error
- func DelRegKeyValue(registryString string, path string, valueName string) error
- func FindPid(procName string) (int, error)
- func GetRunningCount(procName string) (int, error)
- func InjectShellcode(pid_int int, payload []byte) error
- func RunAs(user, password, proc, cmdline string, netonly bool) (int, error)
- type RegistryRetValue
Constants ¶
View Source
const ( MEM_COMMIT = 0x1000 MEM_RESERVE = 0x2000 PAGE_EXECUTE_READWRITE = 0x40 PROCESS_CREATE_THREAD = 0x0002 PROCESS_QUERY_INFORMATION = 0x0400 PROCESS_VM_OPERATION = 0x0008 PROCESS_VM_WRITE = 0x0020 PROCESS_VM_READ = 0x0010 )
Variables ¶
This section is empty.
Functions ¶
func AddRegKeyBinary ¶
AddRegKeyBinary Adds a registry key of type "binary".
func AddRegKeyDWORD ¶
AddRegKeyDWORD Adds a registry key of type DWORD.
func AddRegKeyExpandedString ¶
AddRegKeyExpandedString Adds a registry key of type "expanded string".
func AddRegKeyQWORD ¶
AddRegKeyQWORD Adds a registry key of type QDWORD.
func AddRegKeyStrings ¶
AddRegKeyStrings Adds a registry key of type "strings".
func DelRegKeyValue ¶
DelRegKeyValue Removes the value of a key from the registry.
func GetRunningCount ¶
GetRunningCount returns the number of copies of a process running as an int.
func InjectShellcode ¶
InjectShellcode Injects shellcode into a running process.
Types ¶
type RegistryRetValue ¶
type RegistryRetValue struct { ValType string `json:"return_type"` StringVal string `json:"string_val"` StringArrayVal []string `json:"string_array_val"` ByteArrayVal []byte `json:"byte_array_val"` IntVal uint32 `json:"int_val"` LongVal uint64 `json:"long_val"` }
func QueryRegKey ¶
func QueryRegKey(registryString string, path string, key string) (RegistryRetValue, error)
QueryRegKey Retrives a registry key's value.
Click to show internal directories.
Click to hide internal directories.