catch exception for patched Vista

MS-2855/keylogger-mettle-extension
zerosum0x0 2018-02-01 21:39:25 -07:00
parent 469209a2b3
commit afef1948bf
1 changed files with 6 additions and 2 deletions

View File

@ -358,7 +358,7 @@ module Exploit::Remote::SMB::Client::Psexec_MS17_010
begin
leak_frag_size(pipe_handle.file_id)
rescue TypeError => e
raise MS17_010_Error 'TypeError leaking initial Frag size, is the target patched?'
raise MS17_010_Error, 'TypeError leaking initial Frag size, is the target patched?'
end
# we have all info for offsets now
@ -604,7 +604,11 @@ module Exploit::Remote::SMB::Client::Psexec_MS17_010
if @ctx['os'] == 'WIN7' and !(@ctx.key? 'arch')
# leak_frag_size() can be used against Windows Vista/2008 to determine target architecture
begin
leak_frag_size(pipe_handle.file_id)
rescue Timeout::Error
raise MS17_010_Error, 'Timeout::Error leaking initial Frag size, is the target patched?'
end
end
attempt_list = []