File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
lib/msf/core/exploit/smb/client Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ def exploit_matched_pairs(pipe_handle)
358
358
begin
359
359
leak_frag_size ( pipe_handle . file_id )
360
360
rescue TypeError => e
361
- raise MS17_010_Error 'TypeError leaking initial Frag size, is the target patched?'
361
+ raise MS17_010_Error , 'TypeError leaking initial Frag size, is the target patched?'
362
362
end
363
363
364
364
# we have all info for offsets now
@@ -604,7 +604,11 @@ def exploit_fish_barrel(pipe_handle)
604
604
605
605
if @ctx [ 'os' ] == 'WIN7' and !( @ctx . key? 'arch' )
606
606
# leak_frag_size() can be used against Windows Vista/2008 to determine target architecture
607
- leak_frag_size ( pipe_handle . file_id )
607
+ begin
608
+ leak_frag_size ( pipe_handle . file_id )
609
+ rescue Timeout ::Error
610
+ raise MS17_010_Error , 'Timeout::Error leaking initial Frag size, is the target patched?'
611
+ end
608
612
end
609
613
610
614
attempt_list = [ ]
You can’t perform that action at this time.
0 commit comments