Home  >  Article  >  Backend Development  >  C/C++ easily cracks the window title of other people's programs

C/C++ easily cracks the window title of other people's programs

黄舟
黄舟Original
2017-01-22 14:26:272092browse

Principle:

Find a handle to hide the control, and then use SetWindowText to modify it. '

I used Qt to create a window program, as shown below

C/C++ easily cracks the window title of other peoples programs

Then I used spy++ with VS to find the window

C/C++ easily cracks the window title of other peoples programs

Create a console program, the code is as follows

#include   
#include   
  
int main()  
{  
    FreeConsole();  
    Sleep(10);  
    HWND Win = FindWindowA(NULL, "demo");  
    if (Win == NULL)  
    {  
        printf("窗体查找失败\n");  
        return 0;  
    }  
    SetWindowTextA(Win, "CSDN IT1995博客");  
  
}

Just use a file bundler

C/C++ easily cracks the window title of other peoples programs

Run next


C/C++ easily cracks the window title of other peoples programs


The above is the content of C/C++ to easily crack the window title of other people's programs. For more related content, please Follow the PHP Chinese website (m.sbmmt.com)!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn