Skip to content

Commit 58a1b65

Browse files
committed
Update Exploit::CheckCode::Unknown
Brain fart.
1 parent 899238a commit 58a1b65

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

modules/auxiliary/scanner/ssh/libssh_auth_bypass.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,15 @@ def check_banner(ip, version)
6262

6363
if v.nil?
6464
vprint_error("#{ip}:#{rport} - #{version} does not appear to be libssh")
65-
return Exploit::CheckCode::Safe
65+
Exploit::CheckCode::Unknown
6666
elsif v.between?(Gem::Version.new('0.6.0'), Gem::Version.new('0.7.5')) ||
6767
v.between?(Gem::Version.new('0.8.0'), Gem::Version.new('0.8.3'))
6868
vprint_good("#{ip}:#{rport} - #{version} appears to be unpatched")
69-
return Exploit::CheckCode::Appears
69+
Exploit::CheckCode::Appears
7070
else
7171
vprint_error("#{ip}:#{rport} - #{version} appears to be patched")
72-
return Exploit::CheckCode::Safe
72+
Exploit::CheckCode::Safe
7373
end
74-
75-
# Hopefully we never hit this
76-
Exploit::CheckCode::Unknown
7774
end
7875

7976
def run_host(ip)

0 commit comments

Comments
 (0)