[python-win32] Credential Manager "CredEnumerate"

alessandro.zanni at bt.com alessandro.zanni at bt.com
Tue Apr 15 10:18:14 CEST 2014


Hi, 

First, thank you Tim for your response. 

In Windows 7 "CredEnumerate" enumerates the credential manager of the current user (except those having the flag: CRED_TYPE_DOMAIN_PASSWORD). However, in Windows 8 this function doesn't work. 
The mimikatz tool did it very well (I tried on Win7 and Win8 and it works well). When we saw the source code in C, it is possible to see that the function used to retrieve it are the same ("VaultGetItem"), but the structure not (there is a difference between PVAULTGETITEM7 and PVAULTGETITEM8). 

I know that it is possible to use ctype and a wrapper to call C functions. However, I wanted to know if there was a easier way to do it. Thank you for your help. Have a great day. 

Alessandro 



________________________________________
De : python-win32 [python-win32-bounces+alessandro.zanni=bt.com at python.org] de la part de Tim Roberts [timr at probo.com]
Date d'envoi : lundi 14 avril 2014 21:03
À : Python-Win32 List
Objet : Re: [python-win32] Credential Manager "CredEnumerate"

alessandro.zanni at bt.com wrote:
> I'm working on a Windows project in Python and I have some questions concerning the windows credentials manager.The function "CredEnumerate" of the "win32cred" lib works really well to retrieve the credentials manager on Windows 7. But as you know, the way to retrieve the credential manager items changed from Windows 7 to 8.

I'm a little bit amused by your very polite "as you know" statement,
because I strongly suspect that no one on this list DID know it.  I'm
deeply into Windows -- I write Windows drivers for a living -- and I did
not know this had changed.

What is the new way?  MSDN doesn't mention any replacement.


> Do you know if there is another way in Python to do so ?

Any Windows DLL that does not already have a win32 wrapper can be called
using ctypes.  It's a little bit tedious, but it's incredibly flexible.

--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32 at python.org
https://mail.python.org/mailman/listinfo/python-win32


More information about the python-win32 mailing list