add missing .to_binary_s calls
This commit is contained in:
parent
5f88971ca9
commit
652e237131
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue