Land #11423, Moved bruteforce(ip) under the sys_name check
commit
027c0fc100
|
@ -171,23 +171,27 @@ class MetasploitModule < Msf::Auxiliary
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
sys_name = get_system_name(res)
|
||||||
|
|
||||||
|
if sys_name.blank?
|
||||||
|
print_error 'Could not retrieve system name.'
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
version = get_version(res)
|
version = get_version(res)
|
||||||
unless version.blank?
|
unless version.blank?
|
||||||
print_status("Version detected: #{version}")
|
print_status("Version detected: #{version}")
|
||||||
unless is_version_tested?(version)
|
unless is_version_tested?(version)
|
||||||
print_warning("You're running the module against a version we have not tested")
|
print_warning("You're running the module against a version we have not tested.")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
sys_name = get_system_name(res)
|
print_good("System name detected: #{sys_name}")
|
||||||
unless sys_name.blank?
|
report_note(
|
||||||
print_good("System name detected: #{sys_name}")
|
:host => ip,
|
||||||
report_note(
|
:type => "system.name",
|
||||||
:host => ip,
|
:data => sys_name
|
||||||
:type => "system.name",
|
)
|
||||||
:data => sys_name
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
if anonymous_access?(res)
|
if anonymous_access?(res)
|
||||||
print_good("No login necessary. Server allows anonymous access.")
|
print_good("No login necessary. Server allows anonymous access.")
|
||||||
|
|
Loading…
Reference in New Issue