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


- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- 输入按键事件处理程序 2022-01-01