File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
modules/auxiliary/fuzzers/ntp Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 10
10
class Metasploit3 < Msf ::Auxiliary
11
11
12
12
include Msf ::Auxiliary ::Fuzzer
13
- # include Msf::Auxiliary::Scanner
13
+ include Msf ::Auxiliary ::Scanner
14
14
include Msf ::Exploit ::Remote ::Udp
15
15
16
16
NTP_VERSIONS = ( 0 ..7 ) . to_a
@@ -161,7 +161,7 @@ def sleep_time
161
161
datastore [ 'SLEEP' ] / 1000.0
162
162
end
163
163
164
- def run
164
+ def run_host ( ip )
165
165
# parse and sanity check versions
166
166
@versions = datastore [ 'VERSIONS' ] . split ( /[^\d ]/ ) . select { |v | !v . empty? } . map { |v | v . to_i }
167
167
unsupported_versions = @versions - NTP_VERSIONS
@@ -172,12 +172,12 @@ def run
172
172
fail "Unsupported NTP modes: #{ unsupported_modes } " unless unsupported_modes . empty?
173
173
174
174
connect_udp
175
- fuzz_version_mode ( host )
176
- fuzz_version_mode ( host , true )
177
- fuzz_short ( host )
178
- fuzz_random ( host )
179
- fuzz_control ( host ) if @modes . include? ( 6 )
180
- fuzz_private ( host ) if @modes . include? ( 7 )
175
+ fuzz_version_mode ( ip )
176
+ fuzz_version_mode ( ip , true )
177
+ fuzz_short ( ip )
178
+ fuzz_random ( ip )
179
+ fuzz_control ( ip ) if @modes . include? ( 6 )
180
+ fuzz_private ( ip ) if @modes . include? ( 7 )
181
181
disconnect_udp
182
182
end
183
183
You can’t perform that action at this time.
0 commit comments