We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbeccdd commit a9fa1b6Copy full SHA for a9fa1b6
lib/msf/core/exploit/smb/client/psexec_ms17_010.rb
@@ -311,7 +311,11 @@ def find_accessible_named_pipe()
311
312
# todo: spice it up with EternalSynergy output
313
def exploit_matched_pairs(pipe_handle)
314
- leak_frag_size(pipe_handle.file_id)
+ begin
315
+ leak_frag_size(pipe_handle.file_id)
316
+ rescue TypeError => e
317
+ raise MS17_010_Error 'TypeError leaking initial Frag size, is the target patched?'
318
+ end
319
320
# we have all info for offsets now
321
#@ctx = @ctx.merge(OS_ARCH_INFO[@ctx['os']][@ctx['arch']])
0 commit comments