CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/proto/redis/base.rb
Views: 11704
1
module Rex
2
module Proto
3
module Redis
4
# Module containing the constants and functionality for any Redis version.
5
# When a behavior changes, check whether a more recent version module exits
6
# and include the constants from there, or use the functionality defined there.
7
module Base
8
module Constants
9
AUTHENTICATION_REQUIRED = /(?<auth_response>NOAUTH Authentication required)/i
10
NO_PASSWORD_SET = /(?<auth_response>ERR Client sent AUTH, but no password is set)/i
11
WRONG_PASSWORD = /(?<auth_response>ERR invalid password)/i
12
WRONG_ARGUMENTS_FOR_AUTH = /(?<auth_response>ERR wrong number of arguments for 'auth' command)/i
13
OKAY = /\+OK/i
14
end
15
end
16
end
17
end
18
end
19
20