class

Detector::Specification::Mitmproxy

Inherits Detector < Reference < Object

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.

Source

Instance methods

applicable?(filename : String) : Bool

Registers mitmproxy flow paths in CodeLocator.

Source
detect(filename : String, file_contents : String) : Bool
Source
idempotent?

Registers mitmproxy flow paths in CodeLocator.

Source
set_name

Registers mitmproxy flow paths in CodeLocator.

Source