. , . , . : https://github.com/jgk2Th/anti-wpm.
In fact, it creates two variables with the same value and moves one of them to different positions in RAM (simply put), which greatly complicates the search. He then compares the values for the differences.
This is simplified code for an idea. I hope this self-description is well commented.
int Value = 0;
int pValue[ 1000 ] = { 0 };
int Pos = 0;
while( !GetAsyncKeyState( VK_SPACE ) )
{
if( pValue[ Pos ] != Value )
printf( "detected!" );
++Value;
Pos = rand( ) % 1000;
pValue[ Pos ] = Value;
Sleep( 10 );
}
source
share