Errors are different from mere failures (enum_dns)

This makes a clear distinction between errors and failures when
performing zone transfers, and logs accordingly.

[See #483]
This commit is contained in:
Tod Beardsley 2012-06-15 18:10:21 -05:00
parent 122b34c703
commit 7bb3679fef
1 changed files with 4 additions and 3 deletions

View File

@ -453,10 +453,11 @@ class Metasploit3 < Msf::Auxiliary
end
end
else
print_error("Zone transfer failed")
print_error("Zone transfer failed (length was zero)")
end
rescue
print_error("Zone transfer failed")
rescue Exception => e
print_error("Error executing zone transfer: #{e.message}")
elog("Error executing zone transfer: #{e.message}\n#{e.backtrace.join("\n")}")
end
end