Hi All,
I'm working with WFA and Powershell commands, and I have a simple question that nobody seems to be able to answer :
From a Powershell Console or Powershell ISE, how can I get credentials stored in WFA database?
I would like get credential objet or the password in clear text for debugging and developpement purpose, for directly working in Powershell ISE. The reason is there is no way to debug or develop Powershell in a simple and easy way in WFA.
Based on my research :
1. API documentation says clearly no password can be return, so it is not possible to get the password by calling rest/credentials API.
2. By importing WFA.dll in Powershell ISE, Get-WFACredentials cannot be used outside of WFA. This is apparently by design.
3. By editing the WFA.dll which contains Get-WFACredentials command, we can see the dll create a REST API request on localhost for retreiving the credentials with Basic Authentication using user/pwd "system123:system123". But impossible to reproduce the same API call with Powershell...
4. In WFA I found credentials are store in the table command_credential (containing columns user_name, password, ip, name,remote_system_type_id...). This table is only accessible with the root user of the database. Inside passwords look like to be stored with Base64 encoding, but it isn't. If password can be decrypted it would be possible to request by sql the field and get the password from here. Does someone know how to decrypt the password field in the database to cleartext password?
Thanks in advance!
JND.