Favor check_host for a scanner

bug/bundler_fix
William Vu 2014-09-25 07:06:12 -05:00
parent 62b74aeaed
commit 9ed28408e1
No known key found for this signature in database
GPG Key ID: E761DCB4C1629024
1 changed files with 3 additions and 3 deletions

View File

@ -46,12 +46,12 @@ class Metasploit4 < Msf::Auxiliary
@marker = marker
end
def check
def check_host(ip)
res = req("echo #{@marker}")
if res && res.body.include?(@marker * 3)
report_vuln(
:host => rhost,
:host => ip,
:port => rport,
:name => self.name,
:refs => self.references
@ -63,7 +63,7 @@ class Metasploit4 < Msf::Auxiliary
end
def run_host(ip)
return unless check == Exploit::CheckCode::Vulnerable
return unless check_host(ip) == Exploit::CheckCode::Vulnerable
res = req(datastore['CMD'])