笔者是API和逆向的小白,本来通过知乎找到了一份教程
http://www.winprog.org/tutorial/start.html
学到一半感觉还是一知半解,而且没什么成就感。
于是去向大佬求教,完成了这样的一套操作。思路是完成一个从目标文本文件中读取一串字符与目标字符串进行比较的程序,并将这个程序进行逆向。
首先是程序的代码
#include "windows.h"
#include<iostream>
#include<fstream>
#include<string>
using namespace std;
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
ifstream