instrumentation.go
Imports Go's unsafe packageSource names ntdll virtual-memory syscall stubs
SHA-2567b6d1bebf836576266575c0a019973f28f6e80f56be1bd2c4a18e11f3ab40ed0
MaleculeH₂(DbOs)
Evidence
⋯4 lines
5import (
6 "fmt"
7 "unsafe"
8
9 "github.com/VoidSecSoftwares/voidsyscall/syscallwin"
⋯7 lines
48:5… oldProtect uint32
49 regionSize := uintptr(64)
50 err = syscallwin.NtProtectVirtualMemory(
51 uintptr(0xffffffffffffffff),
52 (*uintptr)(unsafe.Pointer(&baseAddr)),
53 ®ionSize,
54 syscallwin.PAGE_EXECUTE_READWRITE,
⋯4 lines