Skip to content

Instantly share code, notes, and snippets.

@ahhh
Created July 2, 2020 23:05
Show Gist options
  • Save ahhh/399ee28b1537635223b35316a72b47de to your computer and use it in GitHub Desktop.
Save ahhh/399ee28b1537635223b35316a72b47de to your computer and use it in GitHub Desktop.
GBJ is a hacky shim used for using binjection in gscript
package gbj
import(
"github.com/Binject/binjection/bj"
)
func PeBinject(sourceBytes []byte, shellcodeBytes []byte) ([]byte, error) {
results, err := bj.PeBinject(sourceBytes, shellcodeBytes, &bj.BinjectConfig{
InjectionMethod: bj.PE,
})
return results, err
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment