minor fixups
parent
09195ad9a7
commit
8711484438
|
@ -50,6 +50,10 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
end
|
end
|
||||||
|
|
||||||
resp,c = send_request_ntlm(winrm_wql_msg(datastore['WQL']))
|
resp,c = send_request_ntlm(winrm_wql_msg(datastore['WQL']))
|
||||||
|
if resp.nil?
|
||||||
|
print_error "Got no reply from the server"
|
||||||
|
return
|
||||||
|
end
|
||||||
if resp.code == 401
|
if resp.code == 401
|
||||||
print_error "Login Failure! Recheck the supplied credentials."
|
print_error "Login Failure! Recheck the supplied credentials."
|
||||||
return
|
return
|
||||||
|
@ -61,7 +65,8 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
end
|
end
|
||||||
resp_tbl = parse_wql_response(resp)
|
resp_tbl = parse_wql_response(resp)
|
||||||
print_good resp_tbl.to_s
|
print_good resp_tbl.to_s
|
||||||
store_loot("winrm.wql_results", "text/csv", ip, resp_tbl.to_csv, "winrm_wql_results.csv", "WinRM WQL Query Results")
|
path = store_loot("winrm.wql_results", "text/csv", ip, resp_tbl.to_csv, "winrm_wql_results.csv", "WinRM WQL Query Results")
|
||||||
|
print_status "Results saved to #{path}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue