Update check with Exploit::CheckCode::Appears

bug/bundler_fix
William Vu 2017-03-15 05:13:30 -05:00
parent f58c6b96d8
commit 0a71e4a903
1 changed files with 5 additions and 1 deletions

View File

@ -65,7 +65,11 @@ class MetasploitModule < Msf::Auxiliary
@target = (xml.at('//platform').text == 'TS-NASX86' ? 'x86' : 'ARM')
vprint_status("QNAP #{info[0]} #{info[1..-1].join('-')} detected")
Exploit::CheckCode::Detected
if Gem::Version.new(info[1]) < Gem::Version.new('4.2.3')
Exploit::CheckCode::Appears
else
Exploit::CheckCode::Detected
end
else
Exploit::CheckCode::Safe
end