Skip to content

Commit dedfca1

Browse files
committed
Change check()
1 parent 3686acc commit dedfca1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/exploits/windows/local/ms15_051_client_copy_image.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def initialize(info={})
2222
'Description' => %q{
2323
This module exploits improper object handling in the win32k.sys kernel mode driver.
2424
This module has been tested on vulnerable builds of Windows 7 x64 and x86, and
25-
Windows 2008 R2 SP1 x64. The exploit should also work on earlier builds of windows.
25+
Windows 2008 R2 SP1 x64.
2626
},
2727
'License' => MSF_LICENSE,
2828
'Author' => [
@@ -57,6 +57,11 @@ def initialize(info={})
5757
end
5858

5959
def check
60+
# Windows Server 2008 Enterprise SP2 (32-bit) 6.0.6002.18005 (Does not work)
61+
# Winodws 7 SP1 (64-bit) 6.1.7601.17514 (Works)
62+
# Windows 7 SP1 (32-bit) 6.1.7601.17514 (Works)
63+
# Windows Server 2008 R2 (64-bit) SP1 6.1.7601.17514 (Works)
64+
6065
if sysinfo['OS'] !~ /windows/i
6166
return Exploit::CheckCode::Unknown
6267
end
@@ -71,7 +76,7 @@ def check
7176
major, minor, build, revision, branch = file_version(file_path)
7277
vprint_status("win32k.sys file version: #{major}.#{minor}.#{build}.#{revision} branch: #{branch}")
7378

74-
return Exploit::CheckCode::Safe if build > 7601
79+
return Exploit::CheckCode::Safe if build == 7601
7580

7681
return Exploit::CheckCode::Detected
7782
end

0 commit comments

Comments
 (0)