mirror of
https://github.com/nmap/nmap.git
synced 2025-12-11 18:29:03 +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:
@@ -390,6 +390,9 @@ function go(host, port)
|
|||||||
elseif status == STATUS_CODES.AUTHENTICATION then
|
elseif status == STATUS_CODES.AUTHENTICATION then
|
||||||
quit(socket)
|
quit(socket)
|
||||||
return false, "Couldn't perform user enumeration, authentication needed"
|
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
|
end
|
||||||
|
|
||||||
username = nextuser()
|
username = nextuser()
|
||||||
|
|||||||
Reference in New Issue
Block a user