Skip to content

Commit 0a71e4a

Browse files
committed
Update check with Exploit::CheckCode::Appears
1 parent f58c6b9 commit 0a71e4a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/auxiliary/gather/qnap_backtrace_admin_hash.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ def check
6565
@target = (xml.at('//platform').text == 'TS-NASX86' ? 'x86' : 'ARM')
6666
vprint_status("QNAP #{info[0]} #{info[1..-1].join('-')} detected")
6767

68-
Exploit::CheckCode::Detected
68+
if Gem::Version.new(info[1]) < Gem::Version.new('4.2.3')
69+
Exploit::CheckCode::Appears
70+
else
71+
Exploit::CheckCode::Detected
72+
end
6973
else
7074
Exploit::CheckCode::Safe
7175
end

0 commit comments

Comments
 (0)