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

Commit 903eb02

Browse files
committed
Ncrack dummy-ssh example fix
1 parent bb77b0c commit 903eb02

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

scanners/ncrack/examples/dummy-ssh/README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
In this example we execute an ncrack scan against the intentional vulnerable ssh service (dummy-ssh)
22

3-
#### Install dummy-ssh
3+
#### Initialize ncrack with lists and dummy-ssh
44

55
Before executing the scan, make sure to have dummy-ssh installed, and have the proper username & password lists:
66

77
```bash
88
# Create user & password list files, you can edit them later if you want
9-
echo "root\nadmin" > users.txt
10-
echo "THEPASSWORDYOUCREATED\n123456\npassword" > passwords.txt
9+
printf "root\nadmin\n" > users.txt
10+
printf "THEPASSWORDYOUCREATED\n123456\npassword\n" > passwords.txt
1111

1212
# Create a Kubernetes secret containing these files
1313
kubectl create secret generic --from-file users.txt --from-file passwords.txt ncrack-lists
@@ -27,3 +27,8 @@ scannerJob:
2727
mountPath: "/ncrack/"
2828
EOF
2929
```
30+
31+
#### Troubleshooting:
32+
* <b> Make sure to leave a blank line at the end of each file used in the secret!</b>
33+
* If printf doesn't create new lines, try 'echo -e "..."'
34+
* You can show your existing secrets with 'kubectl get secrets'

scanners/ncrack/examples/dummy-ssh/scan.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ metadata:
55
spec:
66
scanType: "ncrack"
77
parameters:
8-
# Enable verbose logging
8+
# Enable verbose logging, d10: Debug Level 10, printing more output to the console
99
- -v
10+
- -d10
1011
- -U
1112
- /ncrack/users.txt
1213
- -P

0 commit comments

Comments
 (0)