Skip to content

Commit 0352a53

Browse files
committed
When fuzzing mode 6 (control) and 7 (private) messages, print out each version tested since these tend to take a long time
1 parent 28bf9f8 commit 0352a53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/fuzzers/ntp/ntp_protocol_fuzzer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ def run_host(ip)
183183

184184
# Sends a series of NTP control messages
185185
def fuzz_control(host)
186-
print_status("#{host}:#{rport} fuzzing control messages (mode 6)")
187186
@versions.map { |v| v.to_i }.each do |version|
187+
print_status("#{host}:#{rport} fuzzing version #{version} control messages (mode 6)")
188188
0.upto(31) do |op|
189189
request = build_ntp_control(version, op)
190190
what = "#{request.size}-byte version #{version} mode 6 op #{op} message"
@@ -199,8 +199,8 @@ def fuzz_control(host)
199199

200200
# Sends a series of NTP private messages
201201
def fuzz_private(host)
202-
print_status("#{host}:#{rport} fuzzing private messages (mode 7)")
203202
@versions.map { |v| v.to_i }.each do |version|
203+
print_status("#{host}:#{rport} fuzzing version #{version} private messages (mode 7)")
204204
0.upto(255) do |implementation|
205205
0.upto(255) do |request_code|
206206
request = build_ntp_private(version, implementation, request_code)

0 commit comments

Comments
 (0)