mirror of https://github.com/daffainfo/nuclei.git
Add CLI options for passing client cert auth
parent
e1457a18cb
commit
df12b0d2e6
|
@ -105,6 +105,9 @@ on extensive configurability, massive extensibility and ease of use.`)
|
||||||
flagSet.BoolVar(&options.SystemResolvers, "system-resolvers", false, "use system DNS resolving as error fallback"),
|
flagSet.BoolVar(&options.SystemResolvers, "system-resolvers", false, "use system DNS resolving as error fallback"),
|
||||||
flagSet.BoolVar(&options.OfflineHTTP, "passive", false, "enable passive HTTP response processing mode"),
|
flagSet.BoolVar(&options.OfflineHTTP, "passive", false, "enable passive HTTP response processing mode"),
|
||||||
flagSet.BoolVar(&options.EnvironmentVariables, "env-vars", false, "enable environment variables support"),
|
flagSet.BoolVar(&options.EnvironmentVariables, "env-vars", false, "enable environment variables support"),
|
||||||
|
flagSet.StringVar(&options.ClientCertFile, "client-cert", "cc", "client certificate file (PEM-encoded) used for authenticating against scanned hosts"),
|
||||||
|
flagSet.StringVar(&options.ClientKeyFile, "client-key", "ck", "client key file (PEM-encoded) used for authenticating against scanned hosts"),
|
||||||
|
flagSet.StringVar(&options.ClientCAFile, "client-ca", "ca", "client certificate authority file (PEM-encoded) used for authenticating against scanned hosts"),
|
||||||
)
|
)
|
||||||
|
|
||||||
createGroup(flagSet, "interactsh", "interactsh",
|
createGroup(flagSet, "interactsh", "interactsh",
|
||||||
|
|
|
@ -156,4 +156,10 @@ type Options struct {
|
||||||
NoUpdateTemplates bool
|
NoUpdateTemplates bool
|
||||||
// EnvironmentVariables enables support for environment variables
|
// EnvironmentVariables enables support for environment variables
|
||||||
EnvironmentVariables bool
|
EnvironmentVariables bool
|
||||||
|
// ClientCertFile client certificate file (PEM-encoded) used for authenticating against scanned hosts
|
||||||
|
ClientCertFile string
|
||||||
|
// ClientKeyFile client key file (PEM-encoded) used for authenticating against scanned hosts
|
||||||
|
ClientKeyFile string
|
||||||
|
// ClientCAFile client certificate authority file (PEM-encoded) used for authenticating against scanned hosts
|
||||||
|
ClientCAFile string
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue