Using CredEnumerate to pull WebCredentials

☆樱花仙子☆ 提交于 2019-12-31 04:13:11

问题


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?


回答1:


The simplest solution is to use the password vault, Windows.Security.Credentials.PasswordVault . Of course, this namespace is Windows 8 specific.



来源:https://stackoverflow.com/questions/12538367/using-credenumerate-to-pull-webcredentials

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!