Documentation ¶
Index ¶
- Constants
- func CMDUnhook(DLLname []string) error
- func DiskFuncPtr(moduleName string, funcnamehash string, hash func(string) string) (uint64, string, error)
- func DiskHgate(funcname string, hash func(string) string) (uint16, error)
- func EggCall(callid uint16, argh ...uintptr) (errcode uint32, err error)
- func FullUnhook(DLLname []string) error
- func GetRecyCall(tarApi string, blacklist []string, hash func(string) string) uintptr
- func GetSSNByNameExcept(fname string, hash func(string) string) (uintptr, error)
- func HgSyscall(callid uint16, argh ...uintptr) (errcode uint32, err error)
- func KDllunhook(DLLname []string) error
- func MemFuncPtr(moduleName string, funcnamehash string, hash func(string) string) (uint64, string, error)
- func MemHgate(funcname string, hash func(string) string) (uint16, error)
- func Memcpy(dst, src, size uintptr)
- func Memset(ptr uintptr, c byte, n uintptr)
- func NvA(addr, size uintptr, allocType, protect uint32) (uintptr, error)
- func PerunsFart() error
- func ReCycall(callid uint16, syscallA uintptr, argh ...uintptr) (errcode uint32, err error)
- func ReMapNtdll() (*unNtd, error)
- func Uint16Down(b []byte, idx uint16) uint16
- func Uint16Up(b []byte, idx uint16) uint16
- type BYTE
- type Count_LIST
- type DWORD
- type DW_SYSCALL_LIST
- type Export
- type IMAGE_DATA_DIRECTORY
- type IMAGE_DOS_HEADER
- type IMAGE_FILE_HEADER
- type IMAGE_NT_HEADERS
- type IMAGE_NT_HEADERS64
- type IMAGE_OPTIONAL_HEADER
- type IMAGE_OPTIONAL_HEADER64
- type IMAGE_RUNTIME_FUNCTION_ENTRY
- type LONG
- type Library
- type SPFG
- type SYSCALL_LIST
- type ULONGLONG
- type WORD
Constants ¶
const ( MEM_COMMIT = 0x001000 MEM_RESERVE = 0x002000 IDX = 32 )
const (
IMAGE_NUMBEROF_DIRECTORY_ENTRIES = 16
)
Variables ¶
This section is empty.
Functions ¶
func DiskFuncPtr ¶ added in v1.7.0
func DiskFuncPtr(moduleName string, funcnamehash string, hash func(string) string) (uint64, string, error)
DiskFuncPtr returns a pointer to the function (Virtual Address)
func DiskHgate ¶ added in v1.6.1
NtdllHgate takes the exported syscall name and gets the ID it refers to. This function will access the ntdll file _on disk_, and relevant events/logs will be generated for those actions.
func EggCall ¶ added in v1.7.8
EggCall calls the system function specified by callid with n arguments. Works much the same as syscall.Syscall - return value is the call error code and optional error text. All args are uintptrs to make it easy.
func FullUnhook ¶ added in v1.4.0
func GetRecyCall ¶ added in v1.7.9
func GetSSNByNameExcept ¶ added in v1.8.3
func HgSyscall ¶
HgSyscall calls the system function specified by callid with n arguments. Works much the same as syscall.Syscall - return value is the call error code and optional error text. All args are uintptrs to make it easy.
func KDllunhook ¶ added in v1.8.2
func MemFuncPtr ¶ added in v1.7.0
func MemFuncPtr(moduleName string, funcnamehash string, hash func(string) string) (uint64, string, error)
MemFuncPtr returns a pointer to the function (Virtual Address)
func MemHgate ¶ added in v1.6.1
NtdllHgate takes the exported syscall name and gets the ID it refers to. This function will access the ntdll file _on disk_, and relevant events/logs will be generated for those actions.
func PerunsFart ¶ added in v1.5.0
func PerunsFart() error
Perun's Fart unhook function todo: change syscall package into gabh
func ReCycall ¶ added in v1.7.9
ReCycall calls the system function specified by callid with n arguments. Works much the same as syscall.Syscall - return value is the call error code and optional error text. All args are uintptrs to make it easy.
func ReMapNtdll ¶ added in v1.2.0
func ReMapNtdll() (*unNtd, error)
func Uint16Down ¶ added in v1.4.0
Types ¶
type Count_LIST ¶ added in v1.8.0
type Count_LIST struct { Address uintptr // contains filtered or unexported fields }
type DW_SYSCALL_LIST ¶ added in v1.8.0
type DW_SYSCALL_LIST struct {
// contains filtered or unexported fields
}
func DWhisper ¶ added in v1.8.0
func DWhisper(hash func(string) string) *DW_SYSCALL_LIST
func (*DW_SYSCALL_LIST) GetSysid ¶ added in v1.8.0
func (dl *DW_SYSCALL_LIST) GetSysid(s string) uint16
type IMAGE_DATA_DIRECTORY ¶ added in v1.5.0
type IMAGE_DATA_DIRECTORY _IMAGE_DATA_DIRECTORY
type IMAGE_DOS_HEADER ¶ added in v1.5.0
type IMAGE_DOS_HEADER _IMAGE_DOS_HEADER
type IMAGE_FILE_HEADER ¶ added in v1.5.0
type IMAGE_FILE_HEADER _IMAGE_FILE_HEADER
type IMAGE_NT_HEADERS ¶ added in v1.5.0
type IMAGE_NT_HEADERS IMAGE_NT_HEADERS64
type IMAGE_NT_HEADERS64 ¶ added in v1.5.0
type IMAGE_NT_HEADERS64 _IMAGE_NT_HEADERS64
type IMAGE_OPTIONAL_HEADER ¶ added in v1.5.0
type IMAGE_OPTIONAL_HEADER IMAGE_OPTIONAL_HEADER64
type IMAGE_OPTIONAL_HEADER64 ¶ added in v1.5.0
type IMAGE_OPTIONAL_HEADER64 _IMAGE_OPTIONAL_HEADER64
type IMAGE_RUNTIME_FUNCTION_ENTRY ¶ added in v1.8.3
type Library ¶ added in v1.3.0
Library - describes a loaded library
func LoadLibraryImpl ¶ added in v1.3.0
LoadLibraryImpl - loads a single library to memory, without trying to check or load required imports