aux scanner support
parent
9db295769d
commit
93fa58ed45
|
@ -32,6 +32,13 @@ def initialize(info = {})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
def check
|
||||||
|
nmod = self.replicant
|
||||||
|
code = nmod.check_host(datastore['RHOST'])
|
||||||
|
code
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# The command handler when launched from the console
|
# The command handler when launched from the console
|
||||||
#
|
#
|
||||||
|
|
|
@ -42,7 +42,7 @@ module ModuleCommandDispatcher
|
||||||
def cmd_check(*args)
|
def cmd_check(*args)
|
||||||
defanged?
|
defanged?
|
||||||
|
|
||||||
ip_range_arg = args.shift || ''
|
ip_range_arg = args.shift || datastore['RHOSTS'] || ''
|
||||||
hosts = Rex::Socket::RangeWalker.new(ip_range_arg)
|
hosts = Rex::Socket::RangeWalker.new(ip_range_arg)
|
||||||
|
|
||||||
if hosts.ranges.blank?
|
if hosts.ranges.blank?
|
||||||
|
|
Loading…
Reference in New Issue