Class: Rex::Proto::NTP::Modes::NTPPrivate

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/rex/proto/ntp/modes.rb

Overview

An NTP “private” message. Private messages are only specified for NTP versions 2-4, but this is a fuzzer so why not try them all…

Instance Method Summary collapse

Instance Method Details

#recordsObject



92
93
94
95
96
97
98
# File 'lib/rex/proto/ntp/modes.rb', line 92

def records
  records = []
  1.upto(record_count) do |record_num|
    records << payload[record_size * (record_num - 1), record_size]
  end
  records
end