goretk / gore

GoRE - Package gore is a library for analyzing Go binaries
GNU Affero General Public License v3.0
452 stars 51 forks source link

Replacing extracted information #68

Open CaledoniaProject opened 1 year ago

CaledoniaProject commented 1 year ago

How can I overwrite/replace the extracted information in the compiled binary? e.g BuildID, package names etc. I didn't see any exposed methods that can do this.

CaledoniaProject commented 1 year ago

A better plan, can you modify the golang types structure and add an offset variable?

TcM1911 commented 1 year ago

It's not designed to do any binary patching.

CaledoniaProject commented 1 year ago

@TcM1911 I just need your library to expose the offsets, I will do the modification myself.