1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 10:29:03 +00:00

Add status code 553 (Relaying Denied) to the list of NOTPERMITTED codes in

smtp-enum-users.nse. Martin Holst Swende reported this.
This commit is contained in:
david
2010-09-07 20:15:41 +00:00
parent f7b4900eac
commit 5f7d7fe252

View File

@@ -288,6 +288,9 @@ function do_rcpt(socket, username, domain)
if not status then
return STATUS_CODES.ERROR, string.format("Failed to issue RCPT TO:<%s@%s> command (%s)", username, domain, response)
elseif string.match(response, "^553") then
-- 553 Relaying Denied
return STATUS_CODES.NOTPERMITTED
elseif string.match(response, "^530") then
-- If the command failed, check if authentication is needed because all the other attempts will fail.
return STATUS_CODES.AUTHENTICATION