| | |
| | |
| | #include <Windows.h> |
| | #include <iostream> |
| |
|
| | |
| | #include <ctime> |
| | #pragma comment(lib, "winmm.lib") |
| | #include <cstdlib> |
| | bool stopCursor = false; |
| |
|
| | void cursor(int delay) {
|
| |
|
| | int screenWidth = GetSystemMetrics(SM_CXSCREEN);
|
| | int screenHeight = GetSystemMetrics(SM_CYSCREEN);
|
| |
|
| |
|
| | srand(static_cast<unsigned int>(time(0)));
|
| |
|
| |
|
| | while (true) {
|
| |
|
| | int randomX = rand() % screenWidth;
|
| | int randomY = rand() % screenHeight;
|
| |
|
| |
|
| | SetCursorPos(randomX, randomY);
|
| |
|
| |
|
| | Sleep(delay);
|
| |
|
| |
|
| | if (GetAsyncKeyState(VK_ESCAPE)) {
|
| | break;
|
| | }
|
| | }
|
| | } |
| |
|
| | VOID WINAPI sound1() { |
| | HWAVEOUT hWaveOut = 0; |
| | WAVEFORMATEX wfx = { WAVE_FORMAT_PCM, 1, 8000, 8000, 1, 8, 0 }; |
| | waveOutOpen(&hWaveOut, WAVE_MAPPER, &wfx, 0, 0, CALLBACK_NULL); |
| | char buffer[8000 * 30] = {}; |
| | for (DWORD t = 0; t < sizeof(buffer); ++t) |
| | buffer[t] = static_cast<char>(t ^ 56 + t * 1 >> t); |
| |
|
| | WAVEHDR header = { buffer, sizeof(buffer), 0, 0, 0, 0, 0, 0 }; |
| | waveOutPrepareHeader(hWaveOut, &header, sizeof(WAVEHDR)); |
| | waveOutWrite(hWaveOut, &header, sizeof(WAVEHDR)); |
| | waveOutUnprepareHeader(hWaveOut, &header, sizeof(WAVEHDR)); |
| | waveOutClose(hWaveOut); |
| | } |
| |
|
| | VOID WINAPI sound2() { |
| | HWAVEOUT hWaveOut = 0; |
| | WAVEFORMATEX wfx = { WAVE_FORMAT_PCM, 1, 8000, 8000, 1, 8, 0 }; |
| | waveOutOpen(&hWaveOut, WAVE_MAPPER, &wfx, 0, 0, CALLBACK_NULL); |
| | char buffer[8000 * 30] = {}; |
| | for (DWORD t = 0; t < sizeof(buffer); ++t) |
| | buffer[t] = static_cast<char>(t * t / (1 + (t >> 9 & t >> 8)) & 128); |
| |
|
| | WAVEHDR header = { buffer, sizeof(buffer), 0, 0, 0, 0, 0, 0 }; |
| | waveOutPrepareHeader(hWaveOut, &header, sizeof(WAVEHDR)); |
| | waveOutWrite(hWaveOut, &header, sizeof(WAVEHDR)); |
| | waveOutUnprepareHeader(hWaveOut, &header, sizeof(WAVEHDR)); |
| | waveOutClose(hWaveOut); |
| | } |
| |
|
| | VOID WINAPI sound3() { |
| | HWAVEOUT hWaveOut = 0; |
| | WAVEFORMATEX wfx = { WAVE_FORMAT_PCM, 1, 8000, 8000, 1, 8, 0 }; |
| | waveOutOpen(&hWaveOut, WAVE_MAPPER, &wfx, 0, 0, CALLBACK_NULL); |
| | char buffer[8000 * 30] = {}; |
| | for (DWORD t = 0; t < sizeof(buffer); ++t) |
| | buffer[t] = static_cast<char>(150 * (t >> 6 | t | t >> (t >> 15)) + (7 & t >> 10)); |
| |
|
| | WAVEHDR header = { buffer, sizeof(buffer), 0, 0, 0, 0, 0, 0 }; |
| | waveOutPrepareHeader(hWaveOut, &header, sizeof(WAVEHDR)); |
| | waveOutWrite(hWaveOut, &header, sizeof(WAVEHDR)); |
| | waveOutUnprepareHeader(hWaveOut, &header, sizeof(WAVEHDR)); |
| | waveOutClose(hWaveOut); |
| | } |
| |
|
| | VOID WINAPI sound4() {
|
| | HWAVEOUT hWaveOut = 0;
|
| | WAVEFORMATEX wfx = { WAVE_FORMAT_PCM, 1, 8000, 8000, 1, 8, 0 };
|
| | waveOutOpen(&hWaveOut, WAVE_MAPPER, &wfx, 0, 0, CALLBACK_NULL);
|
| | char buffer[8000 * 30] = {};
|
| | for (DWORD t = 0; t < sizeof(buffer); ++t)
|
| | buffer[t] = static_cast<char>(t * 3 & t >> 6) % 66;
|
| |
|
| | WAVEHDR header = { buffer, sizeof(buffer), 0, 0, 0, 0, 0, 0 };
|
| | waveOutPrepareHeader(hWaveOut, &header, sizeof(WAVEHDR));
|
| | waveOutWrite(hWaveOut, &header, sizeof(WAVEHDR));
|
| | waveOutUnprepareHeader(hWaveOut, &header, sizeof(WAVEHDR));
|
| | waveOutClose(hWaveOut);
|
| | } |
| |
|
| | VOID WINAPI sound5() {
|
| | HWAVEOUT hWaveOut = 0;
|
| | WAVEFORMATEX wfx = { WAVE_FORMAT_PCM, 1, 10000, 10000, 1, 8, 0 };
|
| | waveOutOpen(&hWaveOut, WAVE_MAPPER, &wfx, 0, 0, CALLBACK_NULL);
|
| | char buffer[10000 * 30] = {};
|
| | for (DWORD t = 0; t < sizeof(buffer); ++t)
|
| | buffer[t] = static_cast<char>(t * (t >> 6 & t >> 2));
|
| |
|
| | WAVEHDR header = { buffer, sizeof(buffer), 0, 0, 0, 0, 0, 0 };
|
| | waveOutPrepareHeader(hWaveOut, &header, sizeof(WAVEHDR));
|
| | waveOutWrite(hWaveOut, &header, sizeof(WAVEHDR));
|
| | waveOutUnprepareHeader(hWaveOut, &header, sizeof(WAVEHDR));
|
| | waveOutClose(hWaveOut);
|
| | } |
| |
|
| | VOID WINAPI sound6() {
|
| | HWAVEOUT hWaveOut = 0;
|
| | WAVEFORMATEX wfx = { WAVE_FORMAT_PCM, 1, 22050, 22050, 1, 8, 0 };
|
| | waveOutOpen(&hWaveOut, WAVE_MAPPER, &wfx, 0, 0, CALLBACK_NULL);
|
| | char buffer[22050 * 30] = {};
|
| | for (DWORD t = 0; t < sizeof(buffer); ++t)
|
| | buffer[t] = static_cast<char>(t * ((t >> 6 | t >> 11) & 15 & t >> 9)) * t >> 10;
|
| |
|
| | WAVEHDR header = { buffer, sizeof(buffer), 0, 0, 0, 0, 0, 0 };
|
| | waveOutPrepareHeader(hWaveOut, &header, sizeof(WAVEHDR));
|
| | waveOutWrite(hWaveOut, &header, sizeof(WAVEHDR));
|
| | waveOutUnprepareHeader(hWaveOut, &header, sizeof(WAVEHDR));
|
| | waveOutClose(hWaveOut);
|
| | } |
| |
|
| | VOID WINAPI sound7() {
|
| | HWAVEOUT hWaveOut = 0;
|
| | WAVEFORMATEX wfx = { WAVE_FORMAT_PCM, 1, 11025, 11025, 1, 8, 0 };
|
| | waveOutOpen(&hWaveOut, WAVE_MAPPER, &wfx, 0, 0, CALLBACK_NULL);
|
| | char buffer[11025 * 30] = {};
|
| | for (DWORD t = 0; t < sizeof(buffer); ++t)
|
| | buffer[t] = static_cast<char>(t * (t ^ t + (t >> 15 | 1) / (t - 1280 ^ t) >> 10));
|
| |
|
| | WAVEHDR header = { buffer, sizeof(buffer), 0, 0, 0, 0, 0, 0 };
|
| | waveOutPrepareHeader(hWaveOut, &header, sizeof(WAVEHDR));
|
| | waveOutWrite(hWaveOut, &header, sizeof(WAVEHDR));
|
| | waveOutUnprepareHeader(hWaveOut, &header, sizeof(WAVEHDR));
|
| | waveOutClose(hWaveOut);
|
| | } |
| |
|
| | VOID WINAPI lastsound() {
|
| | HWAVEOUT hWaveOut = 0;
|
| | WAVEFORMATEX wfx = { WAVE_FORMAT_PCM, 1, 8000, 8000, 1, 8, 0 };
|
| | waveOutOpen(&hWaveOut, WAVE_MAPPER, &wfx, 0, 0, CALLBACK_NULL);
|
| | char buffer[8000 * 30] = {};
|
| | for (DWORD t = 0; t < sizeof(buffer); ++t)
|
| | buffer[t] = static_cast<char>(t * ((t >> 7 | t >> 9) & 30) & t << 1);
|
| |
|
| | WAVEHDR header = { buffer, sizeof(buffer), 0, 0, 0, 0, 0, 0 };
|
| | waveOutPrepareHeader(hWaveOut, &header, sizeof(WAVEHDR));
|
| | waveOutWrite(hWaveOut, &header, sizeof(WAVEHDR));
|
| | waveOutUnprepareHeader(hWaveOut, &header, sizeof(WAVEHDR));
|
| | waveOutClose(hWaveOut);
|
| | } |
| |
|
| | int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { |
| | |
| | int response = MessageBox(NULL, L"Warning! This is long program, and safe, this is with sound and cursor moving effect\nThis is a not GDI or malware, this is sound and cursor moving effect (REALLY)\n\nWARNING: NO RECOMEMEND TEST ON YOUR PC!", L"paradestr.exe", MB_YESNO | MB_ICONWARNING); |
| |
|
| | |
| | if (response == IDYES) { |
| | CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)cursor, (LPVOID)10, 0, NULL); |
| |
|
| | sound1(); |
| | Sleep(30000); |
| | sound2(); |
| | Sleep(30000); |
| | sound3(); |
| | Sleep(30000); |
| | sound4(); |
| | Sleep(30000); |
| | sound5(); |
| | Sleep(30000); |
| | sound6(); |
| | Sleep(30000); |
| | sound7(); |
| | Sleep(30000); |
| | lastsound(); |
| | Sleep(30000); |
| | } |
| | else { |
| | return 0; |
| | } |
| |
|
| | return 0; |
| | } |
| |
|