Ignore proxy errors during scanning

git-svn-id: file:///home/svn/framework3/trunk@7962 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-12-23 15:29:22 +00:00
parent b13e185943
commit a9ec7c8b21
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ def run
nmod.run_host(targ)
rescue ::Interrupt,::NoMethodError, ::RuntimeError, ::ArgumentError, ::NameError
raise $!
rescue ::Rex::ConnectionError, ::Errno::ECONNRESET, ::Errno::EINTR
rescue ::Rex::ConnectionError, ::Rex::ConnectionProxyError, ::Errno::ECONNRESET, ::Errno::EINTR
rescue ::Exception => e
print_status("Error: #{targ}: #{e.class} #{e.message}")
elog("Error running against host #{targ}: #{e.message}\n#{e.backtrace.join("\n")}")
@ -160,7 +160,7 @@ def run
nmod.run_batch(mybatch)
rescue ::Interrupt,::NoMethodError, ::RuntimeError, ::ArgumentError, ::NameError
raise $!
rescue ::Rex::ConnectionError, ::Errno::ECONNRESET
rescue ::Rex::ConnectionError, ::Rex::ConnectionProxyError, ::Errno::ECONNRESET, ::Errno::EINTR
rescue ::Exception => e
print_status("Error: #{mybatch[0]}-#{mybatch[-1]}: #{e}")
end