1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

Remove the stack traces from these scanners

git-svn-id: file:///home/svn/framework3/trunk@9024 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2010-04-06 03:57:22 +00:00
parent af10ee5e57
commit 1de8e13378
4 changed files with 8 additions and 4 deletions

View File

@ -109,13 +109,14 @@ class Metasploit3 < Msf::Auxiliary
disconnect
return
rescue ::Timeout::Error
rescue ::Interrupt
raise $!
rescue ::Rex::ConnectionError
rescue ::Rex::Proto::SMB::Exceptions::LoginError
next
rescue ::Exception => e
print_line("Error: #{ip} #{e.class} #{e} #{e.backtrace}")
print_line("Error: #{ip} #{e.class} #{e}")
end
end
end

View File

@ -315,13 +315,14 @@ class Metasploit3 < Msf::Auxiliary
# cleanup
disconnect
return
rescue ::Timeout::Error
rescue ::Interrupt
raise $!
rescue ::Rex::ConnectionError
rescue ::Rex::Proto::SMB::Exceptions::LoginError
next
rescue ::Exception => e
print_line("Error: #{ip} #{e.class} #{e} #{e.backtrace}")
print_line("Error: #{ip} #{e.class} #{e}")
end
end
end

View File

@ -256,13 +256,14 @@ class Metasploit3 < Msf::Auxiliary
# cleanup
disconnect
return
rescue ::Timeout::Error
rescue ::Interrupt
raise $!
rescue ::Rex::ConnectionError
rescue ::Rex::Proto::SMB::Exceptions::LoginError
next
rescue ::Exception => e
print_line("Error: #{ip} #{e.class} #{e} #{e.backtrace}")
print_line("Error: #{ip} #{e.class} #{e}")
end
end
end

View File

@ -128,10 +128,11 @@ class Metasploit3 < Msf::Auxiliary
end
return
rescue ::Timeout::Error
rescue ::Rex::ConnectionError
next
rescue ::Exception => e
print_error("#{rhost}: #{e.class} #{e} #{e.backtrace}")
print_error("#{rhost}: #{e.class} #{e}")
ensure
disconnect
end