Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
feed.beacon
func buildBeacon(name string, group string) sockets.Beacon {
pwd, _ := os.Getwd()
executable, _ := os.Executable()
return sockets.Beacon{
Name: name,
Range: group,
Pwd: pwd,
Location: executable,
Platform: runtime.GOOS,
Executors: util.DetermineExecutors(runtime.GOOS, runtime.GOARCH),
Links: make([]sockets.Instruction, 0),
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment