1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +00:00

Include a message in the output (and quit trying users with the current method)

when smtp-enum-users hits an unhandled status code.
This commit is contained in:
david
2010-09-07 20:13:05 +00:00
parent 90e2d1dacd
commit f7b4900eac

View File

@@ -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()