See #678, handle the new range behavior

git-svn-id: file:///home/svn/framework3/trunk@7822 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-12-11 15:37:26 +00:00
parent 3ac51c7396
commit f157d66625
1 changed files with 2 additions and 2 deletions

View File

@ -237,8 +237,8 @@ class Plugin::Nexpose < Msf::Plugin
range_inp = ::Msf::OptAddressRange.new('TEMPRANGE', [ true, '' ]).normalize(opt_ranges)
range = ::Rex::Socket::RangeWalker.new(range_inp)
include_range = ::Rex::Socket::RangeWalker.new(opt_addrinc) || nil
exclude_range = ::Rex::Socket::RangeWalker.new(opt_addrexc) || nil
include_range = opt_addrinc ? ::Rex::Socket::RangeWalker.new(opt_addrinc) : nil
exclude_range = opt_addrexc ? ::Rex::Socket::RangeWalker.new(opt_addrexc) : nil
completed = 0
total = range.num_ips