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

Commit 92bb0be

Browse files
committed
Include port in nikto target url
1 parent c2fca86 commit 92bb0be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator/controllers/targets/host_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func CreateScanTemplatesForHost(host targetsv1.Host) []ScanTemplates {
190190
Type: port.Type,
191191
ScanSpec: executionv1.ScanSpec{
192192
ScanType: "nikto",
193-
Parameters: []string{"-h", fmt.Sprintf("%s://%s", port.Type, host.Spec.Hostname), "-p", fmt.Sprintf("%d", port.Port), "-Tuning", "1,2,3,5,7,b"},
193+
Parameters: []string{"-h", fmt.Sprintf("%s://%s:%d", port.Type, host.Spec.Hostname, port.Port), "-Tuning", "1,2,3,5,7,b"},
194194
},
195195
})
196196
}

0 commit comments

Comments
 (0)