Merge pull request #1 from jhart-r7/landing-4265-jhart

This is a great intermediate approach, thanks @jhart-r7 ! Will verify Pro and msfconsole cases momentarily.
bug/bundler_fix
Samuel Huckins 2014-11-26 09:50:32 -06:00
commit 2aeedb160d
2 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,7 @@ module Auxiliary::UDPScanner
register_options(
[
Opt::RPORT,
OptInt.new('BATCHSIZE', [true, 'The number of hosts to probe in each set', 256]),
OptInt.new('THREADS', [true, "The number of concurrent threads", 10])
], self.class)

View File

@ -25,6 +25,12 @@ class Metasploit3 < Msf::Auxiliary
OptBool.new('RANDOMIZE_PORTS', [false, 'Randomize the order the ports are probed', true])
], self.class)
# RPORT is required by UDPScanner but not used in this module since it
# works with multiple ports.
# TODO: update this module to simply use Scanner or update UDPScanner to support
# multiple ports.
deregister_options('RPORT')
# Intialize the probes array
@probes = []