Remove the stack traces from these scanners

git-svn-id: file:///home/svn/framework3/trunk@9024 4d416f70-5f16-0410-b530-b9f4589650da
unstable
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