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

Commit c6fddbf

Browse files
committed
Fixed ncrack ssh cascading rules
1 parent 9f3e650 commit c6fddbf

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

scanners/ncrack/cascading-rules/crackssh.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,19 @@ spec:
1212
attributes:
1313
port: 22
1414
state: open
15+
- category: "Open Port"
16+
attributes:
17+
service: "ssh"
18+
state: open
1519
scanSpec:
1620
scanType: "ncrack"
1721
parameters:
1822
- -v
1923
- -d10
20-
- --user=root,admin
21-
- --pass=abcdef,THEPASSWORDYOUCREATED,12345
22-
- ssh://"{{location}}"
24+
- -U
25+
- /ncrack/users.txt
26+
- -P
27+
- /ncrack/passwords.txt
28+
- -p
29+
- ssh:{{attributes.port}}
30+
- "{{attributes.ip_address}}"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# The CascadingRules are not directly in the /templates directory as their curly bracket syntax clashes with helms templates ... :(
2+
# We import them as raw files to avoid these clashes as escaping them is even more messy
3+
{{ range $path, $_ := .Files.Glob "cascading-rules/*" }}
4+
# Include File
5+
{{ $.Files.Get $path }}
6+
# Separate multiple files
7+
---
8+
{{ end }}

0 commit comments

Comments
 (0)