Skip to content

Commit 758c3fa

Browse files
committed
Only discard monlist replies that are impossibly short
This fixes the case where if a monlist reply only includes one peer
1 parent 7ad9300 commit 758c3fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/ntp/ntp_monlist.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def scanner_postscan(batch)
141141
end
142142

143143
def extract_peer_tuples(data)
144-
return [] if data.length < (72 + 16)
144+
return [] if data.length < 76
145145

146146
# NTP headers 8 bytes
147147
ntp_flags, ntp_auth, ntp_vers, ntp_code = data.slice!(0,4).unpack('C*')

0 commit comments

Comments
 (0)