package main
import (
"github.com/avelex/procmem"
)
func main() {
pid := 164433
address := 0xc00012c008
proc := procmem.NewProcess(pid)
want := "Hello"
got, err := proc.ReadString(uintptr(address), len(want))
if err != nil {
...
}
fmt.Println(want == got) // true
newString := "World"
if err := proc.WriteString(uintptr(ptr), newString); err != nil {
...
}
got, err = proc.ReadString(uintptr(address), len(newString))
if err != nil {
...
}
fmt.Println(newString == got) // true
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Process Memory Read-Writer implemented on Go
License
avelex/procmem
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Process Memory Read-Writer implemented on Go
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published