gocanaryCmd.PersistentFlags().Uint16Var(&httpsPort,"https-port",443,"Port for https server")
//autocert?
gocanaryCmd.PersistentFlags().StringVar(&dnsAnswerWith,"dns-answer-with","","IP address to give as an answer to DNS request matching a canary, if empty NXDOMAIN")
gocanaryCmd.PersistentFlags().BoolVar(&dnsNotAnswer,"dns-not-answer",false,"Do not answer with any response")
gocanaryCmd.PersistentFlags().StringVar(&httpsCert,"https-cert","cert.pem","File contained the certificate in PEM format")
gocanaryCmd.PersistentFlags().StringVar(&httpsKey,"https-key","cert.key","File contained the certificate key in PEM format")
gocanaryCmd.PersistentFlags().BoolVar(&dnsNotAnswer,"dns-not-answer",false,"Do not answer with any response, not even NXDOMAIN")
gocanaryCmd.PersistentFlags().StringVar(&httpsCert,"https-cert","cert.pem","File containing the certificate in PEM format")
gocanaryCmd.PersistentFlags().StringVar(&httpsKey,"https-key","cert.key","File containing the certificate key in PEM format")
gocanaryCmd.PersistentFlags().StringVar(&cacheDir,"cache-dir","./cache","Writable directory for holding up autocertificates")
gocanaryCmd.PersistentFlags().BoolVar(&hardeningEnabled,"enable-hardening",true,"Enable extra hardening measures")
gocanaryCmd.PersistentFlags().StringArrayVar(&domains,"domain",[]string{},"Only respond to this domain (multiple accepted)")
gocanaryCmd.PersistentFlags().StringArrayVar(&autocertDomains,"autocert-domain",[]string{},"Enable let's encrypt autocertificate (multiple accepted), https-cert and http-key will be ignored")
gocanaryCmd.PersistentFlags().StringArrayVar(&autocertDomains,"autocert-domain",[]string{},"Enable let's encrypt autocertificates (multiple accepted), https-cert and http-key will be ignored")
exePath,err:=os.Executable()
iferr!=nil{
...
...
@@ -95,7 +95,7 @@ var gocanaryCmd = &cobra.Command{
Version:version,
Short:"gocanary is a honeytoken/canary collector implementing multiple listeners like http/https/dns",
Long:`gocanary is a honeytoken/canary collector daemon that listens for http/https/dns requests.
Alerts will be generated when a predefined haystack is detected.`,
Alerts will be generated when a predefined haystack/honeytoken is detected.`,