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

Commit fa551dd

Browse files
committed
#33 Use IP Address when Hostname is not set
1 parent 4ea889b commit fa551dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scanners/nikto/cascading-rules/http.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ spec:
2020
scanType: "nikto"
2121
parameters:
2222
- "-host"
23-
- "{{attributes.hostname}}"
23+
# Use Hostname if defined, fall back to ip if not defined
24+
- "{{#attributes.hostname}}{{attributes.hostname}}{{/attributes.hostname}}{{^attributes.hostname}}{{attributes.ip_address}}{{/attributes.hostname}}"
2425
- "-port"
2526
- "{{attributes.port}}"
2627
- "-Tuning"

0 commit comments

Comments
 (0)