From f7b4900eac4ea1fbbc5d9e3d31c79487fef7104c Mon Sep 17 00:00:00 2001 From: david Date: Tue, 7 Sep 2010 20:13:05 +0000 Subject: [PATCH] Include a message in the output (and quit trying users with the current method) when smtp-enum-users hits an unhandled status code. --- scripts/smtp-enum-users.nse | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/smtp-enum-users.nse b/scripts/smtp-enum-users.nse index 92b5a97a7..11f61559b 100644 --- a/scripts/smtp-enum-users.nse +++ b/scripts/smtp-enum-users.nse @@ -390,6 +390,9 @@ function go(host, port) elseif status == STATUS_CODES.AUTHENTICATION then quit(socket) return false, "Couldn't perform user enumeration, authentication needed" + else -- STATUS_CODES.INVALID + table.insert(result, string.format("Method %s returned a unhandled status code.", method)) + break end username = nextuser()