Class: BetterCap::Parsers::TeamViewer

Inherits:
Base
  • Object
show all
Defined in:
lib/bettercap/sniffer/parsers/teamviewer.rb

Overview

MySQL authentication parser.

Instance Method Summary collapse

Methods inherited from Base

available, from_cmdline, from_exclusion_list, inherited, #initialize, load_by_names, load_custom, #match_port?

Constructor Details

This class inherits a constructor from BetterCap::Parsers::Base

Instance Method Details

#on_packet(pkt) ⇒ Object



18
19
20
21
22
23
24
25
26
27
# File 'lib/bettercap/sniffer/parsers/teamviewer.rb', line 18

def on_packet( pkt )
  return unless (pkt.tcp_dst == 5938 || pkt.tcp_src == 5938)

  packet = Network::Protos::TeamViewer::Packet.parse( pkt.payload )

  return if packet.nil?

  StreamLogger.log_raw( pkt, 'TEAMVIEWER', "#{'version'.blue}=#{packet.version.yellow} #{'command'.blue}=#{packet.command.yellow}"  )
rescue
end