Skip to content

Commit

Permalink
Land #11423, Moved bruteforce(ip) under the sys_name check
Browse files Browse the repository at this point in the history
  • Loading branch information
wchen-r7 authored and msjenkins-r7 committed Mar 5, 2019
1 parent 3b8ad6a commit 3c9e546
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions modules/auxiliary/scanner/http/hp_sys_mgmt_login.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,23 +171,27 @@ def run_host(ip)
}
})

sys_name = get_system_name(res)

if sys_name.blank?
print_error 'Could not retrieve system name.'
return
end

version = get_version(res)
unless version.blank?
print_status("Version detected: #{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

sys_name = get_system_name(res)
unless sys_name.blank?
print_good("System name detected: #{sys_name}")
report_note(
:host => ip,
:type => "system.name",
:data => sys_name
)
end
print_good("System name detected: #{sys_name}")
report_note(
:host => ip,
:type => "system.name",
:data => sys_name
)

if anonymous_access?(res)
print_good("No login necessary. Server allows anonymous access.")
Expand Down

0 comments on commit 3c9e546

Please sign in to comment.