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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user