Skip to content

Commit fa44141

Browse files
committed
Only include the exact readvar payload, not any padding
1 parent 65c1a82 commit fa44141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/ntp/ntp_readvar.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def scanner_postscan(_batch)
5353
proto: 'udp',
5454
port: rport,
5555
name: 'ntp',
56-
info: @results[k].map { |r| r.payload }.join.inspect
56+
info: @results[k].map { |r| r.payload.slice(0,r.payload_size) }.join.inspect
5757
)
5858

5959
peer = "#{k}:#{rport}"

0 commit comments

Comments
 (0)