Module: Rex::Post::Meterpreter::Extensions::Sniffer

Included in:
Ui::Console::CommandDispatcher::Sniffer
Defined in:
lib/rex/post/meterpreter/extensions/sniffer/tlv.rb,
lib/rex/post/meterpreter/extensions/sniffer/sniffer.rb,
lib/rex/post/meterpreter/extensions/sniffer/command_ids.rb

Defined Under Namespace

Classes: Sniffer

Constant Summary collapse

TLV_TYPE_EXTENSION_SNIFFER =
0
TLV_TYPE_SNIFFER_INTERFACES =
TLV_META_TYPE_GROUP | (TLV_TYPE_EXTENSION_SNIFFER + TLV_EXTENSIONS + 1)
TLV_TYPE_SNIFFER_INTERFACE_ID =
TLV_META_TYPE_UINT  | (TLV_TYPE_EXTENSION_SNIFFER + TLV_EXTENSIONS + 2)
TLV_TYPE_SNIFFER_INTERFACE_HANDLE =
TLV_META_TYPE_UINT  | (TLV_TYPE_EXTENSION_SNIFFER + TLV_EXTENSIONS + 3)
TLV_TYPE_SNIFFER_PACKET_COUNT =
TLV_META_TYPE_UINT  | (TLV_TYPE_EXTENSION_SNIFFER + TLV_EXTENSIONS + 4)
TLV_TYPE_SNIFFER_BYTE_COUNT =
TLV_META_TYPE_UINT  | (TLV_TYPE_EXTENSION_SNIFFER + TLV_EXTENSIONS + 5)
TLV_TYPE_SNIFFER_EXCLUDE_PORTS =
TLV_META_TYPE_GROUP | (TLV_TYPE_EXTENSION_SNIFFER + TLV_EXTENSIONS + 6)
TLV_TYPE_SNIFFER_INCLUDE_PORTS =
TLV_META_TYPE_GROUP | (TLV_TYPE_EXTENSION_SNIFFER + TLV_EXTENSIONS + 7)
TLV_TYPE_SNIFFER_PACKETS =
TLV_META_TYPE_GROUP  | (TLV_TYPE_EXTENSION_SNIFFER + TLV_EXTENSIONS + 8)
TLV_TYPE_SNIFFER_PACKET =
TLV_META_TYPE_RAW    | (TLV_TYPE_EXTENSION_SNIFFER + TLV_EXTENSIONS + 9)
TLV_TYPE_SNIFFER_ADDITIONAL_FILTER =
TLV_META_TYPE_STRING | (TLV_TYPE_EXTENSION_SNIFFER + TLV_EXTENSIONS + 10)
EXTENSION_ID_SNIFFER =

ID for the extension (needs to be a multiple of 1000)

4000
COMMAND_ID_SNIFFER_CAPTURE_DUMP =

Associated command ids

EXTENSION_ID_SNIFFER + 1
COMMAND_ID_SNIFFER_CAPTURE_DUMP_READ =
EXTENSION_ID_SNIFFER + 2
COMMAND_ID_SNIFFER_CAPTURE_RELEASE =
EXTENSION_ID_SNIFFER + 3
COMMAND_ID_SNIFFER_CAPTURE_START =
EXTENSION_ID_SNIFFER + 4
COMMAND_ID_SNIFFER_CAPTURE_STATS =
EXTENSION_ID_SNIFFER + 5
COMMAND_ID_SNIFFER_CAPTURE_STOP =
EXTENSION_ID_SNIFFER + 6
COMMAND_ID_SNIFFER_INTERFACES =
EXTENSION_ID_SNIFFER + 7