This repository was archived by the owner on Oct 14, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
scanners/ncrack/examples/dummy-ssh Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
In this example we execute an ncrack scan against the intentional vulnerable ssh service (dummy-ssh)
2
2
3
- #### Install dummy-ssh
3
+ #### Initialize ncrack with lists and dummy-ssh
4
4
5
5
Before executing the scan, make sure to have dummy-ssh installed, and have the proper username & password lists:
6
6
7
7
``` bash
8
8
# 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
11
11
12
12
# Create a Kubernetes secret containing these files
13
13
kubectl create secret generic --from-file users.txt --from-file passwords.txt ncrack-lists
@@ -27,3 +27,8 @@ scannerJob:
27
27
mountPath: "/ncrack/"
28
28
EOF
29
29
```
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'
Original file line number Diff line number Diff line change @@ -5,8 +5,9 @@ metadata:
5
5
spec :
6
6
scanType : " ncrack"
7
7
parameters :
8
- # Enable verbose logging
8
+ # Enable verbose logging, d10: Debug Level 10, printing more output to the console
9
9
- -v
10
+ - -d10
10
11
- -U
11
12
- /ncrack/users.txt
12
13
- -P
You can’t perform that action at this time.
0 commit comments