Skip to content

Commit 432aa87

Browse files
J12934Weltraumschaf
authored andcommitted
Migrate nikto test and example to use the -url which seems to be working correctly right now
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@owasp.org>
1 parent 6fd0d1b commit 432aa87

4 files changed

Lines changed: 7 additions & 11 deletions

File tree

scanners/nikto/examples/demo-bodgeit/scan.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ metadata:
1111
spec:
1212
scanType: "nikto"
1313
parameters:
14-
- "-h"
15-
- "bodgeit"
16-
- "-port 8080"
14+
- "-url"
15+
- "http://bodgeit:8080"
1716
- "-Tuning"
1817
# Only enable fast (ish) Scan Options, remove attack option like SQLi and RCE. We will leave those to ZAP
1918
- "1,2,3,5,7,b"

scanners/nikto/examples/demo-docs.securecodebox.io/scan.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
spec:
1212
scanType: "nikto"
1313
parameters:
14-
- "-h"
14+
- "-url"
1515
- "https://www.securecodebox.io/"
1616
- "-Tuning"
1717
# Only enable fast (ish) Scan Options, remove attack option like SQLi and RCE. We will leave those to ZAP

scanners/nikto/examples/demo-juice-shop/scan.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ metadata:
1111
spec:
1212
scanType: "nikto"
1313
parameters:
14-
- "-h"
15-
- "juice-shop"
16-
- "-port 3000"
14+
- "-url"
15+
- "http://juice-shop:3000"
1716
- "-Tuning"
1817
# Only enable fast (ish) Scan Options, remove attack option like SQLi and RCE. We will leave those to ZAP
1918
- "1,2,3,5,7,b"

scanners/nikto/integration-tests/nikto.test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ test(
1313
"nikto-bodgeit",
1414
"nikto",
1515
[
16-
"-h",
17-
"bodgeit.demo-targets.svc",
18-
"-port",
19-
"8080",
16+
"-url",
17+
"http://bodgeit.demo-targets.svc:8080",
2018
"-Tuning",
2119
"1,2,3,5,7,b",
2220
], // See nikto bodgeit example

0 commit comments

Comments
 (0)