LeakedIn Logo
Stories About Data Leaks and Related Stuff

Potential leak of data: Windows GetAsyncKeyState API Call

15 votedvote

Detected 1 occurrence(s) of ‘GetAsyncKeyState\(‘:

, sizeof(INPUT));
}


void RunTrigger(COLORREF save){
	//keep checking
	while ( (colourCompare(save, getPixel())) ){
		
	}
	//shoot
	std::cout << "BANG BANG";
	shoot();

}



int _tmain(int argc, _TCHAR* argv[])
{

	while (true){
		if(GetAsyncKeyState(VK_XBUTTON1) ){
			COLORREF save = getPixel();
			RunTrigger(save);
			Sleep(1000);
		}
	}
	
	return 0;
}


//movement stops trigger
//mouse movement stops trigger
//dont shoot on trigger key clicking

Source: http://pastebin.com/raw.php?i=0BUgBR26

Tags: ,

Comments are closed.