Documentation
¶
Overview ¶
Package activemq implements service detection for Apache ActiveMQ using the OpenWire protocol.
Detection Strategy: 1. Sends minimal WIREFORMAT_INFO frame (21 bytes):
- 4-byte size prefix (big-endian, value = 17)
- 1-byte type (0x01 = WIREFORMAT_INFO)
- 8-byte magic "ActiveMQ" (ASCII)
- 4-byte protocol version (big-endian, value = 1)
- 4-byte empty properties (big-endian, value = 0)
2. Validates server WIREFORMAT_INFO response:
- Minimum 17 bytes required
- Byte 4 must be 0x01 (WIREFORMAT_INFO type)
- Bytes 5-12 must be "ActiveMQ" (magic bytes)
- Bytes 13-16 contain protocol version (1-12 valid range)
3. Returns Service with protocol version or wildcard CPE if version unknown
Index ¶
Constants ¶
View Source
const ( ActiveMQOpenWire = "activemq-openwire" ActiveMQOpenWireTLS = "activemq-openwire-tls" WireFormatInfo = 0x01 MagicBytes = "ActiveMQ" MinResponseSize = 17 MaxProtocolVersion = 12 ActiveMQCPEMatch = "cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct{}
func (*Plugin) PortPriority ¶
Click to show internal directories.
Click to hide internal directories.