Pizz33 / go-inject

Process injection techniques written in Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-inject

Process injection techniques written in Go. I've also expanded this repo to include some general offense techniques in Go.

Techniques

Usage

Use msfvenom or any other tool to generate hex encoded shellcode:

msfvenom -p windows/x64/exec CMD=calc.exe -f hex

Place hex encoded payload within one of the example .go files replacing the content of the payload variable. You can cross compile on Linux using the following: Linux:

env GOOS=windows go build -ldflags="-s -w" -trimpath examples/x64/uuid/uuid.go

Detection

I've written a few simple yara rules to detect binaries using go-inject:

Yara ruleset

I also recommend using Sysmon event ids 8 (CreateRemoteThread) and 25 (ProcessTampering) for detection.

References

About

Process injection techniques written in Go.

License:MIT License


Languages

Language:Go 95.1%Language:YARA 4.9%