1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 04:39:03 +00:00

Redis (at least v2.9.9) returns -NOAUTH to unauthenticated commands.

This commit is contained in:
henri
2013-05-06 21:00:45 +00:00
parent 0f47a16746
commit a25a1824d6

View File

@@ -84,11 +84,12 @@ local function checkRedis(host, port)
end
if ( redis.Response.Type.ERROR == response.type ) then
if ( "-ERR operation not permitted" == response.data ) then
if ( "-ERR operation not permitted" == response.data ) or
( "-NOAUTH Authentication required." == response.data) then
return true
end
end
return false, "Server does not require authentication"
end