Path: blob/master/lib/rex/proto/redis/base.rb
19812 views
module Rex1module Proto2module Redis3# Module containing the constants and functionality for any Redis version.4# When a behavior changes, check whether a more recent version module exits5# and include the constants from there, or use the functionality defined there.6module Base7module Constants8AUTHENTICATION_REQUIRED = /(?<auth_response>NOAUTH Authentication required)/i9NO_PASSWORD_SET = /(?<auth_response>ERR Client sent AUTH, but no password is set)/i10WRONG_PASSWORD = /(?<auth_response>ERR invalid password)/i11WRONG_ARGUMENTS_FOR_AUTH = /(?<auth_response>ERR wrong number of arguments for 'auth' command)/i12OKAY = /\+OK/i13end14end15end16end17end181920