patch the normal sequence of execution
An example of patching eflags of the target program
#include <iostream>
#include <Windows.h>
int main()
{
bool test_bool = true;
while (true)
{
if (test_bool == true)
{
std::cout << "test_bool is TRUE !\n";
}
else
{
std::cout << "test_bool is FALSE !\n";
}
Sleep(2000);
}
}Last updated