Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <Windows.h>
- using namespace std;
- POINT textBox;
- POINT durationTime;
- POINT bandwidth;
- POINT launchStressTest;
- INPUT CTRL;
- INPUT vKey;
- int toolActive = 0;
- int main()
- {
- cout << "Welcome to IPStresser.com Tool.\n" << endl;
- system("pause");
- system("cls");
- cout << "Step 1. Open IPStresser and allow this window and the IPStresser window to be visible at the same time.\n(Browser NOT maximized!)\nCopy the IP you wish to use." << endl;
- system("pause");
- system("cls");
- cout << "Step 2. Hover over the Host 1 text box and press any key to continue." << endl;
- system("pause");
- GetCursorPos(&textBox);
- system("cls");
- cout << "Step 3. Hover in the middle of the Duration slider and press any key to continue." << endl;
- system("pause");
- GetCursorPos(&durationTime);
- system("cls");
- cout << "Step 4. Hover in the middle of the Bandwidth slider and press any key to continue." << endl;
- system("pause");
- GetCursorPos(&bandwidth);
- system("cls");
- cout << "Step 5. Hover over the Launch Stress Test button, and press any key to continue." << endl;
- system("pause");
- GetCursorPos(&launchStressTest);
- system("cls");
- while (toolActive = 0)
- {
- cout << "Press X once more to begin, press Z to stop and start back at the beginning.\nYou must not have adjusted your browser location or size while setting coordinates or while using the tool." << endl;
- if (GetKeyState(0x58)) toolActive = 1;
- system("cls");
- }
- while (toolActive = 1)
- {
- int textBox1();
- {
- Sleep(500);
- SetCursorPos(textBox.x, textBox.y);
- mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
- Sleep(250);
- mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
- Sleep(250);
- if (GetKeyState(0x5A)) return 0;
- Sleep(100);
- // Set up a generic keyboard event.
- CTRL.type = INPUT_KEYBOARD;
- CTRL.ki.wScan = 0; // hardware scan code for key
- CTRL.ki.time = 0;
- CTRL.ki.dwExtraInfo = 0;
- Sleep(50);
- // Set up a generic keyboard event.
- vKey.type = INPUT_KEYBOARD;
- vKey.ki.wScan = 0; // hardware scan code for key
- vKey.ki.time = 0;
- vKey.ki.dwExtraInfo = 0;
- Sleep(50);
- // Press the "CTRL" key
- CTRL.ki.wVk = 0x11; // virtual-key code for the "CTRL" key
- CTRL.ki.dwFlags = 0; // 0 for key press
- SendInput(1, &CTRL, sizeof(INPUT));
- Sleep(100);
- // Press the "V" key
- vKey.ki.wVk = 0x56; // virtual-key code for the "V" key
- vKey.ki.dwFlags = 0; // 0 for key press
- SendInput(1, &vKey, sizeof(INPUT));
- Sleep(250);
- // Release the "CTRL" key
- CTRL.ki.dwFlags = KEYEVENTF_KEYUP; // KEYEVENTF_KEYUP for key release
- SendInput(1, &CTRL, sizeof(INPUT));
- Sleep(250);
- // Release the "V" key
- vKey.ki.dwFlags = KEYEVENTF_KEYUP; // KEYEVENTF_KEYUP for key release
- SendInput(1, &vKey, sizeof(INPUT));
- }
- Sleep(125);
- if (GetKeyState(0x5A)) return 0;
- Sleep(50);
- SetCursorPos(durationTime.x, durationTime.y);
- Sleep(50);
- mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
- Sleep(50);
- mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
- Sleep(50);
- if (GetKeyState(0x5A)) return 0;
- SetCursorPos(bandwidth.x, bandwidth.y);
- Sleep(50);
- mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
- Sleep(50);
- mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
- Sleep(50);
- if (GetKeyState(0x5A)) return 0;
- SetCursorPos(launchStressTest.x, launchStressTest.y);
- Sleep(50);
- mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
- Sleep(100);
- mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
- Sleep(50);
- if (GetKeyState(0x5A)) return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement