jamesmoriarty / gomem

A Go library for manipulating Windows processes.
https://pkg.go.dev/github.com/jamesmoriarty/gomem
MIT License
50 stars 7 forks source link
dll dll-injection exploit external go golang hack kernel32 kernel32-dll reverse-engineering security windows

GoMem

Continuous Integration Latest Tag Go Report Card

A Go package for manipulating Windows processes. Automated tests manipulate and verify their own process memory via Windows APIs.

import "github.com/jamesmoriarty/gomem"

// Open process with handle.
process, err  := gomem.GetOpenProcessFromName("example.exe")

// Read from process memory.
valuePtr, err := process.ReadUInt32(offsetPtr)

// Write to process memory.
process.WriteByte(valuePtr, value)

Build

go build

Test

go test

Docs

pkg.go.dev/github.com/jamesmoriarty/gomem

Examples

github.com/jamesmoriarty/gohack