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
parent
342cc816aa
commit
0e300d64dc
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue