File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
modules/exploits/windows/local Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ def open_device
110
110
def check
111
111
handle = open_device
112
112
if handle . nil? || handle == INVALID_HANDLE_VALUE
113
+ print_error ( "MSMQ installation not found" )
113
114
return Exploit ::CheckCode ::Safe
114
115
end
115
116
session . railgun . kernel32 . CloseHandle ( handle )
@@ -119,6 +120,7 @@ def check
119
120
when /windows xp.*service pack 3/i
120
121
return Exploit ::CheckCode ::Appears
121
122
when /windows xp/i
123
+ print_error ( "Incorrect version of Windows XP detected" )
122
124
return Exploit ::CheckCode ::Detected
123
125
else
124
126
return Exploit ::CheckCode ::Safe
@@ -141,10 +143,7 @@ def exploit
141
143
142
144
# Running on Windows XP versions that aren't listed in the supported list results
143
145
# in a BSOD and so we should not let that happen.
144
- if check != Exploit ::CheckCode ::Appears
145
- print_error ( "Target machine not supported (incorrect Windows version or missing MSMQ)" )
146
- return
147
- end
146
+ return unless check == Exploit ::CheckCode ::Appears
148
147
149
148
kernel_info = find_sys_base ( nil )
150
149
base_addr = 0xffff
You can’t perform that action at this time.
0 commit comments