Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit fbeaada

Browse files
committed
Hosts run sslyze scans on https ports
1 parent 92557ea commit fbeaada

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

operator/controllers/targets/host_controller.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,16 @@ func CreateScanTemplatesForHost(host targetsv1.Host) []ScanTemplates {
194194
},
195195
})
196196
}
197+
if port.Type == "https" {
198+
scanTemplates = append(scanTemplates, ScanTemplates{
199+
Port: port.Port,
200+
Type: port.Type,
201+
ScanSpec: executionv1.ScanSpec{
202+
ScanType: "sslyze",
203+
Parameters: []string{"--regular", fmt.Sprintf("https://%s:%d", host.Spec.Hostname, port.Port)},
204+
},
205+
})
206+
}
197207
}
198208

199209
return scanTemplates

0 commit comments

Comments
 (0)