diff --git a/lib/msf/core/auxiliary/scanner.rb b/lib/msf/core/auxiliary/scanner.rb index 5ab138b446..d91e3469a8 100644 --- a/lib/msf/core/auxiliary/scanner.rb +++ b/lib/msf/core/auxiliary/scanner.rb @@ -33,12 +33,11 @@ end def check - nmod = self.replicant + nmod = replicant begin - code = nmod.check_host(datastore['RHOST']) - return code + nmod.check_host(datastore['RHOST']) rescue NoMethodError - return Exploit::CheckCode::Unsupported + Exploit::CheckCode::Unsupported end end