hooka

package
v0.0.0-...-02d0221 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoCheck

func AutoCheck() (bool, error)

func BlockDLLs

func BlockDLLs() error

func CalcShellcode

func CalcShellcode() []byte

func CheckCpu

func CheckCpu() bool

func CheckDisk

func CheckDisk() (bool, error)

func CheckDrivers

func CheckDrivers() bool

func CheckHighPrivs

func CheckHighPrivs() (bool, error)

func CheckHostname

func CheckHostname() (bool, error)

func CheckInternet

func CheckInternet() bool

func CheckMemory

func CheckMemory() (bool, error)

func CheckProcess

func CheckProcess() (bool, error)

func CheckUsername

func CheckUsername() (bool, error)

func ClassicUnhook

func ClassicUnhook(funcnames []string, dllpath string) error

func ConvertDllBytesToShellcode

func ConvertDllBytesToShellcode(dll_bytes []byte, dll_func string, func_args string) ([]byte, error)

func ConvertDllToShellcode

func ConvertDllToShellcode(dll_file string, dll_func string, func_args string) ([]byte, error)

func CreateProcess

func CreateProcess(shellcode []byte, pid int) error

use 0 as pid to self-inject

func CreateProcessBlockDLLs

func CreateProcessBlockDLLs(cmd string) error

func CreateRemoteThread

func CreateRemoteThread(shellcode []byte, pid int) error

use 0 as pid to self-inject

func DetectHooks

func DetectHooks() ([]string, error)

func DumpLsass

func DumpLsass(output_file string) error

func EnableACG

func EnableACG() error

func EnumSystemLocales

func EnumSystemLocales(shellcode []byte) error

func EnumSystemLocalesHalos

func EnumSystemLocalesHalos(shellcode []byte) error

func EtwpCreateEtwThread

func EtwpCreateEtwThread(shellcode []byte) error

func Fibers

func Fibers(shellcode []byte) error

func FullUnhook

func FullUnhook(dlls_to_unhook []string) error

unhook especified DLLs (provide full paths)

func GetEventLogPid

func GetEventLogPid() (int, error)

func GetFuncPtr

func GetFuncPtr(hash string, dll string, hashing_func func(str string) string) (*windows.LazyProc, string, error)

func GetShellcodeFromFile

func GetShellcodeFromFile(file string) ([]byte, error)

func GetShellcodeFromUrl

func GetShellcodeFromUrl(url string) ([]byte, error)

func GetSysId

func GetSysId(funcname string) (uint16, error)

func GetSysIdHash

func GetSysIdHash(hash string, dll string, hashing_func func(str string) string) (uint16, string, error)

func GetSysIdHashHalos

func GetSysIdHashHalos(hash string, hashing_func func(str string) string) (uint16, string, error)

func IsHooked

func IsHooked(func_name string) (bool, error)

func Md5

func Md5(src string) string

func NoRWX

func NoRWX(shellcode []byte) error

func NtCreateThreadEx

func NtCreateThreadEx(shellcode []byte, pid int) error

func NtCreateThreadExHalos

func NtCreateThreadExHalos(shellcode []byte) error

func NtQueueApcThreadEx

func NtQueueApcThreadEx(shellcode []byte) error

func PatchAmsi

func PatchAmsi() error

func PatchAmsi2

func PatchAmsi2() error

func PatchEtw

func PatchEtw() error

func PatchEtw2

func PatchEtw2() error

func PerunsUnhook

func PerunsUnhook() error

unhook ntdll.dll

func Phant0m

func Phant0m(eventlog_pid int) error

func ProcessHollowing

func ProcessHollowing(shellcode []byte, proc string, blockdlls bool) error

func QueueUserApc

func QueueUserApc(shellcode []byte) error

func RtlCreateUserThread

func RtlCreateUserThread(shellcode []byte, pid int) error

func Sha1

func Sha1(src string) string

func Sha256

func Sha256(src string) string

func Sleep

func Sleep()

func Syscall

func Syscall(callid uint16, argh ...uintptr) (uint32, error)

func UuidFromString

func UuidFromString(shellcode []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL