mozilla / ssh_scan_api

An API for ssh_scan (https://github.com/mozilla/ssh_scan) and the backend API service for the Mozilla SSH Observatory (https://observatory.mozilla.org/)
31 stars 12 forks source link

Port bug #65

Open claudijd opened 7 years ago

claudijd commented 7 years ago
/root/code/ssh_scan/lib/ssh_scan/result.rb:38:in `port=': Invalid attempt to set port to a non-port value (ArgumentError)
        from /root/code/ssh_scan/lib/ssh_scan/scan_engine.rb:26:in `scan_target'
        from /root/code/ssh_scan/lib/ssh_scan/scan_engine.rb:171:in `block (2 levels) in scan'
claudijd commented 7 years ago

Things that might repro this include...

Target: sklep.sportprofit.pl/ Target: https://www.polcard.pl Target: undefined (or blank)

Unclear by the DB whether the port was specified or not, so repro testing should include both.

claudijd commented 7 years ago

I fixed the above example cases in a separate merge FWIW, but I suspect the port bug is still present, just need a repro case.