
أفضل طريقة لمسح كلمات مرور SSH الضعيفة على شبكتك.
سيقوم ssh-auditor تلقائيًا:
scan_interval لكل بيانات اعتماد - الافتراضي 14 يومًا.تم تصميمه بحيث يمكنك تشغيل ssh-auditor discover + ssh-auditor scan من cron كل ساعة لإجراء تدقيق مستمر.
$ brew install go # أو بأي طريقة تريد لتثبيت مترجم Go
$ go get github.com/ncsa/ssh-auditor
$ go build
$ make static
$ ulimit -n 4096
$ ./ssh-auditor discover -p 22 -p 2222 192.168.1.0/24 10.0.0.1/24
$ ./ssh-auditor addcredential root root
$ ./ssh-auditor addcredential admin admin
$ ./ssh-auditor addcredential guest guest --scan-interval 1 # فحص هذا مرة واحدة يوميًا
$ ./ssh-auditor scan
$ ./ssh-auditor vuln
$ ./ssh-auditor rescan
$ ./ssh-auditor dupes
هذا الاستعلام الذي يقوم ssh-auditor vuln بتشغيله هو
select
hc.hostport, hc.user, hc.password, hc.result, hc.last_tested, h.version
from
host_creds hc, hosts h
where
h.hostport = hc.hostport
and result!='' order by last_tested asc