使用CredEnumerate拉WebCredentials [英] Using CredEnumerate to pull WebCredentials
问题描述
作为密码管理工具的一部分,我试图通过枚举IE 10的网站的用户名(即,自动完成用户名) CredEnumerate
。当我打电话 CredEnumerate
,它产生从凭据管理器中的Windows凭据部分中的多个用户名(通用用户名和域用户名),但不包括什么凭证管理(控制Panel\User帐户和家庭Safety\Credential经理)的网络凭证一节。
As part of a password management tool, I am attempting to enumerate IE 10 web site usernames (i.e., auto-complete usernames) by using CredEnumerate
. When I call CredEnumerate
, it yields several usernames (generic usernames and domain usernames) from within the "Windows Credentials" section of the "Credential Manager", but does not include anything from the "Web Credentials" section of the Credential Manager (Control Panel\User Accounts and Family Safety\Credential Manager).
private static void Main()
{
int count;
IntPtr pCredentials;
bool ret = CredEnumerate(null, 1, out count, out pCredentials);
// ...
}
我怎样才能访问网络凭证?
How can I get access to the Web Credentials?
推荐答案
最简单的解决方法是使用密码跳马, Windows.Security.Credentials。 PasswordVault
。当然,这个命名空间是Windows 8的具体。
The simplest solution is to use the password vault, Windows.Security.Credentials.PasswordVault
. Of course, this namespace is Windows 8 specific.
这篇关于使用CredEnumerate拉WebCredentials的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!