mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Redis (at least v2.9.9) returns -NOAUTH to unauthenticated commands.
This commit is contained in:
parent
0f47a16746
commit
a25a1824d6
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue