package
0.0.0-20240523144707-f5b61b103af6
Repository: https://github.com/packetloop/zgrab2.git
Documentation: pkg.go.dev
# Functions
IsNullValue checks if the value is the Redis NullValue (that is, it is a NullType).
RegisterModule registers the zgrab2 module.
# Constants
TypeArray identifies Array ([]RedisValue) types.
TypeBulkString identifies Bulk String ([]byte) values.
TypeError identifiers Error (string) values.
TypeInteger identifiers Integer (int64) values.
TypeSimpleString identifies Simple String (string) values.
# Variables
ErrBadLength is returned when an invalid length value is found (e.g.
ErrInvalidData is returned when the server returns data that cannot be interpreted as a valid Redis value.
ErrWrongType is returned when one identifier is expected but another is found.
NullValue is a global NullType instance.
# Structs
Connection holds the state for a single connection within a scan.
Flags contains redis-specific command-line flags.
Module implements the zgrab2.Module interface.
Result is the struct that is returned by the scan.
Scanner implements the zgrab2.Scanner interface.
# Interfaces
RedisValue is implemented by any redis that can be returned by the server.
# Type aliases
BulkString type -- a binary-safe string with a given length.
ErrorMessage type -- a string, where the first word can optionally be interpreted as an error identifier.
Integer type -- an int64; "the returned integer is guaranteed to be in the range of a signed 64 bit integer" See https://redis.io/topics/protocol#resp-integers.
NullType -- a special type for the NullValue.
RedisArray type -- an array of other RedisValues.
RedisType is a human readable type identifier for redis data.
SimpleString type -- must not contain \r or \n.