Skip to content

Commit 652e237

Browse files
committed
add missing .to_binary_s calls
1 parent 5f88971 commit 652e237

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

modules/auxiliary/scanner/ntp/ntp_monlist.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ def initialize
4949
# Called for each response packet
5050
def scanner_process(data, shost, sport)
5151
@results[shost] ||= { messages: [], peers: [] }
52-
@results[shost][:messages] << Rex::Proto::NTP::NTPPrivate.new.read(data)
52+
@results[shost][:messages] << Rex::Proto::NTP::NTPPrivate.new.read(data).to_binary_s
5353
@results[shost][:peers] << extract_peer_tuples(data)
5454
end
5555

5656
# Called before the scan block
5757
def scanner_prescan(batch)
5858
@results = {}
5959
@aliases = {}
60-
@probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 42, "\0" * 40)
60+
@probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 42, "\0" * 40).to_binary_s
6161
end
6262

6363
# Called after the scan block

modules/auxiliary/scanner/ntp/ntp_peer_list_dos.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ def initialize
3737
# Called before the scan block
3838
def scanner_prescan(batch)
3939
@results = {}
40-
@probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 0)
40+
@probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 0).to_binary_s
4141
end
4242

4343
# Called for each response packet
4444
def scanner_process(data, shost, sport)
4545
@results[shost] ||= []
46-
@results[shost] << Rex::Proto::NTP::NTPPrivate.new.read(data)
46+
@results[shost] << Rex::Proto::NTP::NTPPrivate.new.read(data).to_binary_s
4747
end
4848

4949
# Called after the scan block

modules/auxiliary/scanner/ntp/ntp_peer_list_sum_dos.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ def initialize
3737
# Called for each response packet
3838
def scanner_process(data, shost, sport)
3939
@results[shost] ||= []
40-
@results[shost] << Rex::Proto::NTP::NTPPrivate.new.read(data)
40+
@results[shost] << Rex::Proto::NTP::NTPPrivate.new.read(data).to_binary_s
4141
end
4242

4343
# Called before the scan block
4444
def scanner_prescan(batch)
4545
@results = {}
46-
@probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 1)
46+
@probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 1).to_binary_s
4747
end
4848

4949
# Called after the scan block

modules/auxiliary/scanner/ntp/ntp_reslist_dos.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ def initialize
3939
# Called for each response packet
4040
def scanner_process(data, shost, sport)
4141
@results[shost] ||= []
42-
@results[shost] << Rex::Proto::NTP::NTPPrivate.new.read(data)
42+
privmsg = Rex::Proto::NTP::NTPPrivate.new.read(data)
43+
@results[shost] << privmsg.to_binary_s
4344
end
4445

4546
# Called before the scan block
4647
def scanner_prescan(batch)
4748
@results = {}
48-
@probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 16)
49+
@probe = Rex::Proto::NTP.ntp_private(datastore['VERSION'], datastore['IMPLEMENTATION'], 16).to_binary_s
4950
end
5051

5152
# Called after the scan block

0 commit comments

Comments
 (0)