mozilla / ssh_scan

DEPRECATED - A prototype SSH configuration and policy scanner (Blog: https://mozilla.github.io/ssh_scan/)
Mozilla Public License 2.0
793 stars 105 forks source link

test with IP range results in failure #499

Closed electrical closed 5 years ago

electrical commented 5 years ago

Hi, when running a test with the current docker container against an ip range i get the following error:

docker run -it mozilla/ssh_scan /app/bin/ssh_scan -t xx.xx.xx.0/25
Traceback (most recent call last):
    3: from /app/bin/ssh_scan:240:in `<main>'
    2: from /app/lib/ssh_scan/scan_engine.rb:197:in `scan'
    1: from /app/lib/ssh_scan/scan_engine.rb:197:in `each'
/app/lib/ssh_scan/scan_engine.rb:201:in `block in scan': undefined method `values' for []:Array (NoMethodError)
claudijd commented 5 years ago

@electrical thanks for the report!

electrical commented 5 years ago

I quickly validated the change and works! thank you for the quick followup on this.

claudijd commented 5 years ago

merged the fix into master, I'll try to get a gem release out this morning. Thanks again to you both for the help here!

claudijd commented 5 years ago

I just released gem version 0.0.41, it should also be fixed in master and in the docker flow. Again, many thanks for the help here!

electrical commented 5 years ago

Thank you :+1: