Using CredEnumerate to pull WebCredentials(使用 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 CredEnumerate 拉取 WebCredentials


基础教程推荐
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01