最近刚学c++和逆向所以就写了一段爆破crack的程式
程式码如下
#include <iostream>
#include <windows.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
byte crack[] = {90,90};
int main(int argc, char** argv) {
HWND hwnd;
DWORD pid;
void *hpro;
hwnd = FindWindow(NULL,"CrackMe0.1 By Ferris");
GetWindowThreadProcessId(hwnd,&pid);
hpro = OpenProcess(PROCESS_ALL_ACCESS,0,pid);
WriteProcessMemory(hpro,(LPVOID)0x00401072,(byte*)crack,2,0);
system("pause");
return 0;
}
执行後crackme 就出现 ncrackme.exe已经停止运作 windows 正在寻找问题的解决方案