Skip to content

Commit ebde05b

Browse files
committed
Improve check
1 parent 20621d1 commit ebde05b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/exploits/windows/http/hp_sys_mgmt_exec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ def check
7272
return Exploit::CheckCode::Unknown
7373
end
7474

75-
return Exploit::CheckCode::Vulnerable if res.body =~ /#{sig}/
75+
if res.body =~ /SNMP data engine output/ and res.body =~ /#{sig}/
76+
return Exploit::CheckCode::Vulnerable
77+
end
78+
7679
Exploit::CheckCode::Safe
7780
end
7881

0 commit comments

Comments
 (0)