-
Notifications
You must be signed in to change notification settings - Fork 14k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moved bruteforce(ip) under the sys_name check. #11423
Conversation
Moving the bruteforce(ip) under the sys_name check stops the script from executing against the wrong systems.
That 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
)
if anonymous_access?(res)
print_good("No login necessary. Server allows anonymous access.")
return
end
init_loginscanner(ip)
bruteforce(ip)
end Also, the module will print nothing at all if Something like this would be a good idea: sys_name = get_system_name(res)
if sys_name.blank?
print_error 'Could not retrieve system name'
return
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.")
return
end
init_loginscanner(ip)
bruteforce(ip) |
Yep that worked for me. The only additional thing I see is to move the
|
Removed the tab at 175.
Release NotesThis adds a check for system name in HP System Management Homepage Login Utility. |
Moving the bruteforce(ip) under the sys_name check stops the script from executing against the wrong systems.