如何读取OutLook的帐户密码

您所在的位置:网站首页 怎么看outlook邮箱密码 如何读取OutLook的帐户密码

如何读取OutLook的帐户密码

2023-05-21 04:25| 来源: 网络整理| 查看: 265

#include "stdafx.h" #include #include using namespace std; #pragma comment(lib, "crypt32.lib")

int _tmain(int argc, _TCHAR* argv[]) {     printf("\r\n");     HKEY hKey;

   // 下边的字符串,需要在注册表中找9375CFF0413111d3B88A00104B2A6676 这个的对应版本的键值。     LPCWSTR lpRun = L"Software\\Microsoft\\Office\\16.0\\Outlook\\Profiles\\Outlook\\9375CFF0413111d3B88A00104B2A6676\\00000002";     //READ POP3 DATA define     //----------------------------------------     DWORD sizeBuff = 1000; //read length     DWORD dwtype = REG_BINARY; // reg type     BYTE reBuff[1000] = { 0 }; //save string length     long lRet; //Reg return values     BYTE SmtpServer[200] = { 0 }; //read reg String length     DWORD SMtplen = 200; //DWORD reg read length     BYTE SmtpUser[200] = { 0 };//read reg String length     DWORD SMtpUserlen = 200; //DWORD reg read length                              //------------------------------------------

    lRet = RegOpenKeyExW(HKEY_CURRENT_USER, lpRun, 0, KEY_READ, &hKey); //open reg     if (lRet != ERROR_SUCCESS)     {         printf("RegOpenKeyEx Failed. Ret=%d\r\n", lRet);         return 0;     }     else     {         printf("RegOpenKeyEx Ing.....\r\n");     }

    if (RegQueryValueExW(hKey, L"POP3 User", 0, &dwtype, SmtpUser, &SMtpUserlen) == ERROR_SUCCESS) //query Pop3 Server address     {         //cout         DATA_BLOB DataPassword;         DATA_BLOB DataOutput;         DataPassword.cbData = sizeBuff - 1;         DataPassword.pbData = &reBuff[1];         if (CryptUnprotectData(&DataPassword, 0, 0, 0, 0, CRYPTPROTECT_UI_FORBIDDEN, &DataOutput)) //Crypt pop3 password         {             //cout



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3