使用 CredEnumerate 拉取 WebCredentials [英] Using CredEnumerate to pull WebCredentials

查看:55
本文介绍了使用 CredEnumerate 拉取 WebCredentials的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为密码管理工具的一部分,我尝试使用 CredEnumerate 枚举 IE 10 网站用户名(即自动完成用户名).当我调用 CredEnumerate 时,它会从凭据管理器"的Windows 凭据"部分生成多个用户名(通用用户名和域用户名),但不包括Web 凭据"部分中的任何内容凭据管理器(控制面板用户帐户和家庭安全凭据管理器).

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 PanelUser Accounts and Family SafetyCredential 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆