mirror of
https://github.com/praetorian-inc/goffloader
synced 2026-08-09 13:04:48 +00:00
21 lines
318 B
Go
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)
|
|
}
|