Files
praetorian-inc-goffloader/cmd/pe_example/hello_pe.go
T
2024-07-22 16:15:26 -04:00

21 lines
318 B
Go

package main
import (
_ "embed"
"fmt"
"github.com/praetorian-inc/goffloader/src/pe"
)
// code for this is in hello.c
//
//go:embed hello.exe
var helloBytes []byte
func main() {
output, err := pe.RunExecutable(helloBytes, []string{"Arg1", "Arg2", "Arg3"})
if err != nil {
panic(err)
}
fmt.Println(output)
}