package
0.0.0-20240523144707-f5b61b103af6
Repository: https://github.com/packetloop/zgrab2.git
Documentation: pkg.go.dev
# Functions
RegisterModule registers the zgrab2 module.
# Constants
FunctionCodeMEI identifies the MEI read function.
OIDModelName identifies the model name.
OIDProductCode identifies the product code.
OIDProductName identifies the product name.
OIDRevision identifies the MajorMinorRevision.
OIDUserApplicationName identifies the user application name.
OIDVendor identifies the vendor name.
OIDVendorURL identifies the vendor URL.
# Variables
ModbusFunctionEncapsulatedInterface identifies the MEI read function.
# Structs
Conn wraps the connection state (more importantly, it provides the interface used by the old zgrab code, so that it could be taken over as-is).
ExceptionResponse wraps the exception returned by the server.
Flags holds the command-line configuration for the modbus scan module.
MEIObject wraps the ID/value pair in the 0x2B/0x0E response.
MEIResponse is the parsed data field from the 0x2B/0x0E response.
ModbusEvent is the response object.
ModbusRequest wraps the Modbus ApplicationDataUnit (ADU).
ModbusResponse wraps the data returned by the server in response to the ModbusRequest.
Module implements the zgrab2.Module interface.
Scanner implements the zgrab2.Scanner interface.
# Type aliases
ExceptionCode represents the exception description codes.
ExceptionFunctionCode represents the function code corresponding to an exception -- that is, with the high bit set.
FunctionCode identifies the Modbus function being queried.
MEIObjectID is the numeric identifier used by the server to identify different data.
MEIObjectSet wraps the list of object ID/value pairs, encoding them as a dict of ID name -> value.