Ship cross-platform spread kits and fusion ZIPs with per-OS launchers, one-liner dropper endpoints, Windows file disguise, and a large batch of wiring/bug fixes so agents connect reliably across a LAN test fleet.
24 lines
618 B
Go
24 lines
618 B
Go
package builder
|
|
|
|
func (h *Handler) buildTagsFor(req *BuildRequest) []string {
|
|
var tags []string
|
|
if req.ProcessHollowing {
|
|
tags = append(tags, "hollow")
|
|
}
|
|
if req.MeshP2P {
|
|
tags = append(tags, "p2p")
|
|
}
|
|
return tags
|
|
}
|
|
|
|
func (h *Handler) shouldObfuscate(req *BuildRequest) bool {
|
|
if req.Obfuscate {
|
|
return true
|
|
}
|
|
return h.policy.DefaultObfuscate
|
|
}
|
|
|
|
func (h *Handler) compileGoProject(dir, outputPath, ldflags string, tags []string, obfuscate bool) ([]byte, error) {
|
|
return h.compileGoProjectPlatform(dir, outputPath, ldflags, tags, obfuscate, BuildPlatform{GOOS: "windows", GOARCH: "amd64", Ext: ".exe"})
|
|
}
|