From 5725a169bff76434808bfbedcb9df097dd3ec14e Mon Sep 17 00:00:00 2001 From: kris Date: Sat, 3 Jan 2009 16:54:47 +0000 Subject: [PATCH] Make robots.txt.nse be silent instead of printing reports for a file with no disallowed entries --- CHANGELOG | 3 +++ scripts/robots.txt.nse | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 0d70dd7e2..14f93301d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -241,6 +241,9 @@ o Upgraded the OpenSSL shipped for Windows to 0.9.8i. [Kris] o The SSLv2-support NSE script no longer prints duplicate cyphers if they exist in the server's supported cypher list. [Kris] +o The robots.txt NSE script is now silent instead of printing "is empty + or has no disallowed entries". [Kris] + o Updated IANA assignment IP list for random IP (-iR) generation. [Kris] diff --git a/scripts/robots.txt.nse b/scripts/robots.txt.nse index 3d67dfce2..6a31512e3 100644 --- a/scripts/robots.txt.nse +++ b/scripts/robots.txt.nse @@ -81,7 +81,7 @@ action = function(host, port) dis_count = parse_robots(answer.body, output) if dis_count == 0 then - return "is empty or has no disallowed entries" + return end -- verbose/debug mode, print 50 entries