Versions in this module Expand all Collapse all v0 v0.1.7 May 10, 2023 v0.0.0 May 10, 2023 Changes in this version + const FunctionCodeMEI + var ModbusFunctionEncapsulatedInterface = FunctionCode(0x2B) + func RegisterModule() + type Conn struct + Conn net.Conn + func (c *Conn) GetModbusResponse() (*ModbusResponse, error) + func (c *Conn) MarshalRequest(r *ModbusRequest) (data []byte, err error) + type ExceptionCode byte + type ExceptionFunctionCode byte + func (e ExceptionFunctionCode) FunctionCode() FunctionCode + type ExceptionResponse struct + ExceptionFunction FunctionCode + ExceptionType byte + type Flags struct + ObjectID uint8 + RequestID uint16 + Strict bool + UnitID uint8 + Verbose bool + func (flags *Flags) Help() string + func (flags *Flags) Validate(args []string) error + type FunctionCode byte + func (c FunctionCode) ExceptionFunctionCode() ExceptionFunctionCode + func (c FunctionCode) IsException() bool + type MEIObject struct + OID MEIObjectID + Value string + func (m *MEIObject) MarshalJSON() ([]byte, error) + type MEIObjectID int + const OIDModelName + const OIDProductCode + const OIDProductName + const OIDRevision + const OIDUserApplicationName + const OIDVendor + const OIDVendorURL + func (m *MEIObjectID) Name() string + type MEIObjectSet []MEIObject + func (ms *MEIObjectSet) MarshalJSON() ([]byte, error) + type MEIResponse struct + ConformityLevel int + MoreFollows bool + NextObjectID int + ObjectCount int + Objects MEIObjectSet + type ModbusEvent struct + ExceptionResponse *ExceptionResponse + Function FunctionCode + Length int + MEIResponse *MEIResponse + Raw []byte + Response []byte + UnitID int + type ModbusRequest struct + Data []byte + Function FunctionCode + UnitID int + type ModbusResponse struct + Data []byte + Function FunctionCode + Length int + Raw []byte + UnitID int + func (m *ModbusResponse) IsException() bool + type Module struct + func (module *Module) Description() string + func (module *Module) NewFlags() interface{} + func (module *Module) NewScanner() zgrab2.Scanner + type Scanner struct + func (scanner *Scanner) GetName() string + func (scanner *Scanner) GetTrigger() string + func (scanner *Scanner) Init(flags zgrab2.ScanFlags) error + func (scanner *Scanner) InitPerSender(senderID int) error + func (scanner *Scanner) Protocol() string + func (scanner *Scanner) Scan(target zgrab2.ScanTarget) (zgrab2.ScanStatus, interface{}, error)