diff --git a/modules/auxiliary/scanner/http/trace.rb b/modules/auxiliary/scanner/http/trace.rb index 6ced3d11bdd03..afe452d911587 100644 --- a/modules/auxiliary/scanner/http/trace.rb +++ b/modules/auxiliary/scanner/http/trace.rb @@ -47,7 +47,7 @@ def run_host(target_host) :proto => 'tcp', :sname => (ssl ? 'https' : 'http'), :info => "Vulnerable to Cross-Site Tracing" - ) + ) if active_db? else vprint_error("#{rhost}:#{rport} returned #{res.code} #{res.message}") end @@ -55,4 +55,4 @@ def run_host(target_host) rescue ::Timeout::Error, ::Errno::EPIPE end end -end +end \ No newline at end of file