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 11In 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
55Before 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
1313kubectl create secret generic --from-file users.txt --from-file passwords.txt ncrack-lists
@@ -27,3 +27,8 @@ scannerJob:
2727 mountPath: "/ncrack/"
2828EOF
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'
Original file line number Diff line number Diff line change @@ -5,8 +5,9 @@ metadata:
55spec :
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
You can’t perform that action at this time.
0 commit comments