Compare commits

...
Author SHA1 Message Date
moloch-- da3347c8c3 Strip non-debug plain implant executables 2026-10-22 12:19:12 -07:00
+3
View File
@@ -802,6 +802,9 @@ func SliverExecutable(name string, build *clientpb.ImplantBuild, config *clientp
tags = append(tags, "netgo")
}
ldflags := []string{""} // Garble will automatically add "-s -w -buildid="
if !config.Debug && !config.ObfuscateSymbols {
ldflags[0] = "-s -w"
}
if !config.Debug && goConfig.GOOS == WINDOWS {
ldflags[0] += " -H=windowsgui"
}