diff --git a/modules/auxiliary/scanner/ntp/ntp_monlist.rb b/modules/auxiliary/scanner/ntp/ntp_monlist.rb index b938b62c3c..29bb8fc425 100644 --- a/modules/auxiliary/scanner/ntp/ntp_monlist.rb +++ b/modules/auxiliary/scanner/ntp/ntp_monlist.rb @@ -49,7 +49,7 @@ class MetasploitModule < Msf::Auxiliary # Called for each response packet def scanner_process(data, shost, sport) @results[shost] ||= { messages: [], peers: [] } - @results[shost][:messages] << Rex::Proto::NTP::NTPPrivate.new.read(data) + @results[shost][:messages] << Rex::Proto::NTP::NTPPrivate.new.read(data).to_binary_s @results[shost][:peers] << extract_peer_tuples(data) end @@ -57,7 +57,7 @@ class MetasploitModule < Msf::Auxiliary def scanner_prescan(batch) @results = {} @aliases = {} - @probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 42, "\0" * 40) + @probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 42, "\0" * 40).to_binary_s end # Called after the scan block diff --git a/modules/auxiliary/scanner/ntp/ntp_peer_list_dos.rb b/modules/auxiliary/scanner/ntp/ntp_peer_list_dos.rb index 183d4a4ebb..63522071e4 100644 --- a/modules/auxiliary/scanner/ntp/ntp_peer_list_dos.rb +++ b/modules/auxiliary/scanner/ntp/ntp_peer_list_dos.rb @@ -37,13 +37,13 @@ class MetasploitModule < Msf::Auxiliary # Called before the scan block def scanner_prescan(batch) @results = {} - @probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 0) + @probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 0).to_binary_s end # Called for each response packet def scanner_process(data, shost, sport) @results[shost] ||= [] - @results[shost] << Rex::Proto::NTP::NTPPrivate.new.read(data) + @results[shost] << Rex::Proto::NTP::NTPPrivate.new.read(data).to_binary_s end # Called after the scan block diff --git a/modules/auxiliary/scanner/ntp/ntp_peer_list_sum_dos.rb b/modules/auxiliary/scanner/ntp/ntp_peer_list_sum_dos.rb index d7a11eddc8..610d20f596 100644 --- a/modules/auxiliary/scanner/ntp/ntp_peer_list_sum_dos.rb +++ b/modules/auxiliary/scanner/ntp/ntp_peer_list_sum_dos.rb @@ -37,13 +37,13 @@ class MetasploitModule < Msf::Auxiliary # Called for each response packet def scanner_process(data, shost, sport) @results[shost] ||= [] - @results[shost] << Rex::Proto::NTP::NTPPrivate.new.read(data) + @results[shost] << Rex::Proto::NTP::NTPPrivate.new.read(data).to_binary_s end # Called before the scan block def scanner_prescan(batch) @results = {} - @probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 1) + @probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 1).to_binary_s end # Called after the scan block diff --git a/modules/auxiliary/scanner/ntp/ntp_reslist_dos.rb b/modules/auxiliary/scanner/ntp/ntp_reslist_dos.rb index 1a4ca791ff..611f7b4d46 100644 --- a/modules/auxiliary/scanner/ntp/ntp_reslist_dos.rb +++ b/modules/auxiliary/scanner/ntp/ntp_reslist_dos.rb @@ -39,13 +39,14 @@ class MetasploitModule < Msf::Auxiliary # Called for each response packet def scanner_process(data, shost, sport) @results[shost] ||= [] - @results[shost] << Rex::Proto::NTP::NTPPrivate.new.read(data) + privmsg = Rex::Proto::NTP::NTPPrivate.new.read(data) + @results[shost] << privmsg.to_binary_s end # Called before the scan block def scanner_prescan(batch) @results = {} - @probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 16) + @probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 16).to_binary_s end # Called after the scan block