Moved bruteforce(ip) under the sys_name check.

Moving the bruteforce(ip) under the sys_name check stops the script from executing against the wrong systems.
master
John Q. Public 2019-02-16 14:20:51 -06:00 committed by GitHub
parent 342cc816aa
commit 0e300d64dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 8 deletions

View File

@ -187,15 +187,13 @@ class MetasploitModule < Msf::Auxiliary
:type => "system.name",
:data => sys_name
)
if anonymous_access?(res)
print_good("No login necessary. Server allows anonymous access.")
return
end
init_loginscanner(ip)
bruteforce(ip)
end
if anonymous_access?(res)
print_good("No login necessary. Server allows anonymous access.")
return
end
init_loginscanner(ip)
bruteforce(ip)
end
end