File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
modules/auxiliary/scanner/ssh Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -62,18 +62,15 @@ def check_banner(ip, version)
62
62
63
63
if v . nil?
64
64
vprint_error ( "#{ ip } :#{ rport } - #{ version } does not appear to be libssh" )
65
- return Exploit ::CheckCode ::Safe
65
+ Exploit ::CheckCode ::Unknown
66
66
elsif v . between? ( Gem ::Version . new ( '0.6.0' ) , Gem ::Version . new ( '0.7.5' ) ) ||
67
67
v . between? ( Gem ::Version . new ( '0.8.0' ) , Gem ::Version . new ( '0.8.3' ) )
68
68
vprint_good ( "#{ ip } :#{ rport } - #{ version } appears to be unpatched" )
69
- return Exploit ::CheckCode ::Appears
69
+ Exploit ::CheckCode ::Appears
70
70
else
71
71
vprint_error ( "#{ ip } :#{ rport } - #{ version } appears to be patched" )
72
- return Exploit ::CheckCode ::Safe
72
+ Exploit ::CheckCode ::Safe
73
73
end
74
-
75
- # Hopefully we never hit this
76
- Exploit ::CheckCode ::Unknown
77
74
end
78
75
79
76
def run_host ( ip )
You can’t perform that action at this time.
0 commit comments