Skip to content

Commit 46aa6d3

Browse files
committed
Add a check for it
1 parent a270d37 commit 46aa6d3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

modules/exploits/windows/http/novell_mdm_lfi.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,20 @@ def get_version
6767
return version
6868
end
6969

70+
def check
71+
v = get_version
72+
print_status("#{peer} - Detected version: #{v || 'Unknown'}")
73+
74+
if v.nil?
75+
return Exploit::CheckCode::Unknown
76+
elsif v =~ /^2\.6\.[01]/ or v =~ /^2\.7\.0/
77+
# Conditions based on OSVDB info
78+
return Exploit::CheckCode::Vulnerable
79+
end
80+
81+
return Exploit::CheckCode::Safe
82+
end
83+
7084
def setup_session()
7185
sess = Rex::Text.rand_text_alpha(8)
7286
cmd = Rex::Text.rand_text_alpha(8)

0 commit comments

Comments
 (0)