do not wait for WfsDelay if unable to bind

git-svn-id: file:///home/svn/framework3/trunk@10545 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-10-04 20:48:48 +00:00
parent e2ed2f0d75
commit 6f18c4a468
1 changed files with 6 additions and 1 deletions

View File

@ -82,7 +82,12 @@ class Metasploit3 < Msf::Exploit::Remote
handle = dcerpc_handle('12345678-1234-abcd-EF00-0123456789ab', '1.0', 'ncacn_np', ["\\#{datastore['SMBPIPE']}"])
print_status("Binding to #{handle} ...")
dcerpc_bind(handle)
begin
dcerpc_bind(handle)
rescue ::Rex::Proto::SMB::Exceptions::ErrorCode => e
raise RuntimeError, e.message
end
print_status("Bound to #{handle} ...")
# Try all of the printers :)