Documentation
¶
Index ¶
- Constants
- Variables
- func BufferScanForMaskedPattern(haystack *[]byte, patternMask string, needle *[]byte) (int, bool)
- func ByteArrayToString(arr []byte) string
- func ContainsInvalidChars(s string) bool
- func Float32ToFloat64(f32 float32) float64
- func Float64ToFloat32(f64 float64) float32
- func Float64ToHex(f float64) string
- func Float64ToUint32(f float64) uint32
- func Float64ToUint64(f float64) uint64
- func FloatToHex(f float64) string
- func GetAddress(PID int, Base uintptr, Address uintptr, Offset string) (uintptr, error)
- func GetAddressFromOffsets(address uintptr, offsets ...uintptr) uintptr
- func GetHwndByProcessID(pid uint32) (uintptr, error)
- func GetInstanceHandle(handle uintptr) (uintptr, error)
- func GetModulePatternStatic(pid uint32, hProcess *uintptr, moduleName string, aobScan string, size int) (uintptr, error)
- func GetNeedleFromAOBPattern(aobPattern *[]string) (string, []byte, int)
- func GetPid(exeName string) uint32
- func GetPointerDynamic(pHandle, base *uintptr, aobScan *string, offset int64, pid *uint32, size int) uintptr
- func GetPointerStatic(pHandle, base *uintptr, aobScan *string, offset int64, pid *uint32, size int) uintptr
- func GetProcessHandle(pid uint32) uintptr
- func HexStringToByteArray(hexString string) []byte
- func HexStringToBytes(hexString string) ([]byte, error)
- func HexStringToPattern(hexString string) ([]string, error)
- func HexToFloat(d uint32) float32
- func HexToFloat64(d uint64) float64
- func HexToFloatBig(x uint32) float32
- func Int64ToHex(num int64) string
- func IntToHex(num int) string
- func IntToHexOld(value int) string
- func IsTarget64bit() (bool, error)
- func ModulePatternScan(pid uint32, hProcess *uintptr, moduleName string, aobPattern ...string) (int64, error)
- func PatternScan(hProcess *uintptr, address *uintptr, sizeOfRegionBytes *uintptr, ...) int64
- func Pointer(address uintptr, offsets ...uintptr) uintptr
- func ProcessPatternScan(hProcess *uintptr, startAddress uintptr, endAddress uintptr, ...) int64
- func ReadMemory(MADDRESS uintptr, pid int, size int) (uint64, error)
- func ReadMemoryStr(address uintptr, pid int) (string, error)
- func ReadRaw(hProcess *uintptr, address *uintptr, buffer []byte, offsets ...uintptr) bool
- func SplitPath(path string) (string, string)
- func UintptrToHex(ptr uintptr) string
- func VirtualQueryEx(hProcess uintptr, address uintptr, memInfo *MemoryInfo) bool
- func WriteBytes(pid int, address uintptr, aobString string, offsets ...uintptr) error
- func WriteProcessMemory(pid uint32, address uintptr, valueToWrite float32, size uint32) error
- func WriteRaw(pid int, address uintptr, buffer []byte, sizeBytes int, offsets ...uintptr) error
- type AobCache
- type MEMORY_BASIC_INFORMATION
- type MemoryInfo
- type ModuleEntry32
- type ModuleInfo
Constants ¶
View Source
const ( PROCESS_ALL_ACCESS = 0x1F0FFF PROCESS_QUERY_INFORMATION = 0x0400 PROCESS_VM_READ = 0x0010 LIST_MODULES_ALL = 0x03 PROCESS_QUERY_LIMITED_INFORMATION = 0x1000 PROCESS_VM_WRITE = 0x0020 PROCESS_VM_OPERATION = 0x0008 PROCESS_QUERY_INFO = 0x0400 GWL_HINSTANCE = int32(-6) TH32CS_SNAPMODULE = 0x00000008 TH32CS_SNAPMODULE32 = 0x00000010 )
Variables ¶
View Source
var VirtualQueryExProc = kernel32a.MustFindProc("VirtualQueryEx")
Functions ¶
func ByteArrayToString ¶
func ContainsInvalidChars ¶
func Float32ToFloat64 ¶
func Float64ToFloat32 ¶
func Float64ToHex ¶
func Float64ToUint32 ¶
func Float64ToUint64 ¶
func FloatToHex ¶
func GetAddress ¶
func GetAddressFromOffsets ¶
func GetHwndByProcessID ¶
func GetInstanceHandle ¶
func GetModulePatternStatic ¶
func GetNeedleFromAOBPattern ¶
func GetPointerDynamic ¶
func GetPointerStatic ¶
func GetProcessHandle ¶
func HexStringToByteArray ¶
func HexStringToBytes ¶
func HexStringToPattern ¶
func HexToFloat ¶
func HexToFloat64 ¶
func HexToFloatBig ¶
func Int64ToHex ¶
func IntToHexOld ¶
func IsTarget64bit ¶
func ModulePatternScan ¶
func PatternScan ¶
func ProcessPatternScan ¶
func UintptrToHex ¶
func VirtualQueryEx ¶
func VirtualQueryEx(hProcess uintptr, address uintptr, memInfo *MemoryInfo) bool
func WriteBytes ¶
func WriteProcessMemory ¶
Types ¶
type MemoryInfo ¶
type ModuleEntry32 ¶
type ModuleInfo ¶
type ModuleInfo struct {
Name string
FileName string
SizeOfImage int
EntryPoint uintptr
// contains filtered or unexported fields
}
func GetModuleInfo ¶
func GetModuleInfo(processID uint32, moduleName string) (ModuleInfo, error)
Click to show internal directories.
Click to hide internal directories.