Detector::Specification::Mitmproxy
Constants
LENGTH_PREFIX = /\A\d+:/
Tnetstring length prefix: one or more ASCII digits then a colon.
TYPE_MARKERS = ["4:type;", "4:type,"]
mitmproxy stores its top-level flow type under the dict key
"type". In tnetstring that key always serializes verbatim as
either 4:type; (mitmproxy's bytes type) or 4:type, (the
standard tnetstring string type) depending on flow format
version, so we accept either variant as the magic marker.
Class methods
tech_name
The tech name without needing an instance, so the registry can be read off the classes themselves rather than from a parallel list.