LeakedIn Logo
Stories About Data Leaks and Related Stuff

Potential leak of data: Windows GetAsyncKeyState API Call

0 votedvote

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

nput(1, &__input, sizeof(__input));*/


	//wait for 100 milliseconds

	Sleep(d);
	}
	
int main()
	{
	int delay = 0;
	printf("Delay (in ms)?\t");
	scanf("%d", &delay);

	GetAsyncKeyState(VK_F6);
	
	unsigned char i = 0;
	while(1)
		{
		if(GetAsyncKeyState(VK_F6))
			{
			//switch
			i = !i;
			printf("Status: %d\n", i);
			}
		if(i == 1)
			{
			spam(delay);
			}
		else
			{
			Sleep(500);
			}
		}
	return 0;
	}

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

Tags: ,

Comments are closed.