Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions scanners/nikto/examples/demo-bodgeit/scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ metadata:
spec:
scanType: "nikto"
parameters:
- "-h"
- "bodgeit"
- "-port 8080"
- "-url"
- "http://bodgeit:8080"
- "-Tuning"
# Only enable fast (ish) Scan Options, remove attack option like SQLi and RCE. We will leave those to ZAP
- "1,2,3,5,7,b"
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
spec:
scanType: "nikto"
parameters:
- "-h"
- "-url"
- "https://www.securecodebox.io/"
- "-Tuning"
# Only enable fast (ish) Scan Options, remove attack option like SQLi and RCE. We will leave those to ZAP
Expand Down
5 changes: 2 additions & 3 deletions scanners/nikto/examples/demo-juice-shop/scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ metadata:
spec:
scanType: "nikto"
parameters:
- "-h"
- "juice-shop"
- "-port 3000"
- "-url"
- "http://juice-shop:3000"
- "-Tuning"
# Only enable fast (ish) Scan Options, remove attack option like SQLi and RCE. We will leave those to ZAP
- "1,2,3,5,7,b"
9 changes: 3 additions & 6 deletions scanners/nikto/integration-tests/nikto.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,18 @@ jest.retryTimes(3);
test(
"nikto scan against bodgeit demo-target",
async () => {
const {categories, severities, count} = await scan(
const {categories, severities} = await scan(
"nikto-bodgeit",
"nikto",
[
"-h",
"bodgeit.demo-targets.svc",
"-port",
"8080",
"-url",
"http://bodgeit.demo-targets.svc:8080",
"-Tuning",
"1,2,3,5,7,b",
], // See nikto bodgeit example
90
);

expect(count).toBe(12);
expect(categories).toMatchInlineSnapshot(`
{
"Identified Software": 1,
Expand Down