mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 05:09:00 +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
|
end
|
||||||
|
|
||||||
if ( redis.Response.Type.ERROR == response.type ) then
|
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
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return false, "Server does not require authentication"
|
return false, "Server does not require authentication"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user