Basic SMTP/IMAP probe: look for bad TLS and StartTLS downgrade attacks
This commit is contained in:
parent
a0dc65641d
commit
eca06e83d0
7 changed files with 1272 additions and 0 deletions
22
internal/registry/imap.go
Normal file
22
internal/registry/imap.go
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
package registry
|
||||
|
||||
//
|
||||
// Registers the 'imap' experiment.
|
||||
//
|
||||
|
||||
import (
|
||||
"github.com/ooni/probe-cli/v3/internal/engine/experiment/imap"
|
||||
"github.com/ooni/probe-cli/v3/internal/model"
|
||||
)
|
||||
|
||||
func init() {
|
||||
AllExperiments["imap"] = &Factory{
|
||||
build: func(config interface{}) model.ExperimentMeasurer {
|
||||
return imap.NewExperimentMeasurer(
|
||||
*config.(*imap.Config),
|
||||
)
|
||||
},
|
||||
config: &imap.Config{},
|
||||
inputPolicy: model.InputOrStaticDefault,
|
||||
}
|
||||
}
|
||||
22
internal/registry/smtp.go
Normal file
22
internal/registry/smtp.go
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
package registry
|
||||
|
||||
//
|
||||
// Registers the 'smtp' experiment.
|
||||
//
|
||||
|
||||
import (
|
||||
"github.com/ooni/probe-cli/v3/internal/engine/experiment/smtp"
|
||||
"github.com/ooni/probe-cli/v3/internal/model"
|
||||
)
|
||||
|
||||
func init() {
|
||||
AllExperiments["smtp"] = &Factory{
|
||||
build: func(config interface{}) model.ExperimentMeasurer {
|
||||
return smtp.NewExperimentMeasurer(
|
||||
*config.(*smtp.Config),
|
||||
)
|
||||
},
|
||||
config: &smtp.Config{},
|
||||
inputPolicy: model.InputOrStaticDefault,
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue