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

Inherits:
BitStruct
  • 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



86
87
88
89
90
91
92
# File 'lib/rex/proto/ntp/modes.rb', line 86

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