Documentation ¶
Overview ¶
Package implantsvr - Listen for and handle implant requests
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // rawTemplate is the stock implant generation template. // //go:embed curlgen.tmpl RawTemplate string )
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Dir string SL *slog.Logger HTTPAddr string /* Listen address. */ HTTPSAddr string /* Listen address. */ LEDomainWhitelist []string LEStaging bool SSDomainWhitelist []string LEEmail string SM *jpersist.Manager[state.State] ExfilMax uint64 // contains filtered or unexported fields }
Server listens for and handles implant queries. Populate its public fields and call Start to start it. See the note on server.Config.LEDomainWhitelist for information about TLS certificate generation.
func (*Server) HTTPListenAddr ¶
HTTPListenAddr returns the address on which the server's listening. If it is not listening on HTTP, HTTPAddr returns "". This is meant for testing, which uses passes a port of 0 in s.HTTPAddr.
func (*Server) HTTPSListenAddr ¶
HTTPSListenAddr is like HTTPListenAddr, for HTTPS.
type TemplateParams ¶
type TemplateParams struct { PubkeyFP string `json:",omitempty"` /* Self-signed TLS fingerprint. */ RandN string /* Random base36 number, for ImplantID */ URL string /* C2 URL for /{t,o}/ImplantID */ }
TemplateParams holds the parameters we pass to the template.
Click to show internal directories.
Click to hide internal directories.