memorigo
A simple library for manipulating processes' memory in Go.
For now, works only on Linux based systems.
Installing
go get git.debooger.xyz/debooger/memorigo
Inclusion
import (
mem "git.debooger.xyz/debooger/memorigo"
)
Example
pid, err := mem.Pidof("csgo_linux64")
if err != nil {
fmt.Println(err)
os.Exit(1)
}
client, err := mem.GetModule(pid, "csgo/bin/linux64/client_client.so")
if err != nil {
fmt.Println(err)
os.Exit(1)
}
value, err := mem.Read[int32](pid, client.Start + 45682996)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
fmt.Println(value)
err := mem.Write[int32](pid, client.Start + 45682996, 5)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
License
Copyright (c) 2022 debooger
This project is licensed under the GNU LGPLv3+ license.