Reputation: 451
I found a in interesting project on Github mainly written in Golang containing comments which seem to change the way the code is compiled: https://github.com/BishopFox/sliver/blob/master/implant/sliver/sliver.go#L37
// {{if .Config.IsBeacon}}
"sync"
// {{end}}
How is this method of altering the compilation called and how can it be defined - is this default go?
Upvotes: 0
Views: 65
Reputation: 451
As indicated by @burak-serdar , this is most likely due to the usage of the template
package - as seen here: https://github.com/BishopFox/sliver/blob/978a66bdb0c93adec7cd81721428ca89340830ec/server/generate/binaries.go#L599
Upvotes: 1