Class: BetterCap::Network::Protos::TeamViewer::Packet

Inherits:
Base
  • Object
show all
Defined in:
lib/bettercap/network/protos/teamviewer.rb

Constant Summary

Constants inherited from Base

Base::TYPES

Instance Method Summary collapse

Methods inherited from Base

method_missing, offset, parse, size

Instance Method Details

#commandObject



116
117
118
# File 'lib/bettercap/network/protos/teamviewer.rb', line 116

def command
  return COMMANDS[ self.command_code ]
end

#versionObject



106
107
108
109
110
111
112
113
114
# File 'lib/bettercap/network/protos/teamviewer.rb', line 106

def version
  if self.magic == 0x1724
    return '1'
  elsif self.magic == 0x1130
    return '2'
  else
    return '?'
  end
end