We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 785f633 commit 8eeb66fCopy full SHA for 8eeb66f
modules/auxiliary/scanner/http/novell_mdm_creds.rb
@@ -69,6 +69,12 @@ def get_creds(session_id,cmd_var)
69
cmd_var => cmd
70
}
71
})
72
+
73
+ if res.nil?
74
+ print_error("Connection timed out")
75
+ return "", "" # Empty username & password
76
+ end
77
78
creds = res.body.to_s.match(/.*:"(.*)";.*";/)[1]
79
return creds.split(":")
80
end
@@ -89,6 +95,7 @@ def run_host(ip)
89
95
print_status("Found Version #{ver}")
90
96
session_id,cmd = setup_session()
91
97
user,pass = get_creds(session_id,cmd)
98
+ return if user.empty? and pass.empty?
92
99
print_good("Got creds. Login:#{user} Password:#{pass}")
93
100
print_good("Access the admin interface here: #{ip}:#{rport}#{target_uri.path}dashboard/")
94
101
0 commit comments