Advertisement
Guest User

IPStresser Tool

a guest
Jan 31st, 2017
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. #include <iostream>
  2. #include <Windows.h>
  3. using namespace std;
  4. POINT textBox;
  5. POINT durationTime;
  6. POINT bandwidth;
  7. POINT launchStressTest;
  8. INPUT CTRL;
  9. INPUT vKey;
  10. int toolActive = 0;
  11.  
  12. int main()
  13. {
  14. cout << "Welcome to IPStresser.com Tool.\n" << endl;
  15. system("pause");
  16. system("cls");
  17.  
  18. 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;
  19.  
  20. system("pause");
  21. system("cls");
  22. cout << "Step 2. Hover over the Host 1 text box and press any key to continue." << endl;
  23. system("pause");
  24. GetCursorPos(&textBox);
  25.  
  26. system("cls");
  27. cout << "Step 3. Hover in the middle of the Duration slider and press any key to continue." << endl;
  28. system("pause");
  29. GetCursorPos(&durationTime);
  30.  
  31. system("cls");
  32. cout << "Step 4. Hover in the middle of the Bandwidth slider and press any key to continue." << endl;
  33. system("pause");
  34. GetCursorPos(&bandwidth);
  35.  
  36. system("cls");
  37. cout << "Step 5. Hover over the Launch Stress Test button, and press any key to continue." << endl;
  38. system("pause");
  39. GetCursorPos(&launchStressTest);
  40.  
  41. system("cls");
  42.  
  43.  
  44.  
  45. while (toolActive = 0)
  46. {
  47. 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;
  48. if (GetKeyState(0x58)) toolActive = 1;
  49. system("cls");
  50. }
  51.  
  52. while (toolActive = 1)
  53. {
  54. int textBox1();
  55. {
  56. Sleep(500);
  57.  
  58. SetCursorPos(textBox.x, textBox.y);
  59.  
  60. mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
  61. Sleep(250);
  62. mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
  63. Sleep(250);
  64.  
  65. if (GetKeyState(0x5A)) return 0;
  66.  
  67. Sleep(100);
  68.  
  69. // Set up a generic keyboard event.
  70. CTRL.type = INPUT_KEYBOARD;
  71. CTRL.ki.wScan = 0; // hardware scan code for key
  72. CTRL.ki.time = 0;
  73. CTRL.ki.dwExtraInfo = 0;
  74.  
  75. Sleep(50);
  76.  
  77. // Set up a generic keyboard event.
  78. vKey.type = INPUT_KEYBOARD;
  79. vKey.ki.wScan = 0; // hardware scan code for key
  80. vKey.ki.time = 0;
  81. vKey.ki.dwExtraInfo = 0;
  82.  
  83. Sleep(50);
  84.  
  85. // Press the "CTRL" key
  86. CTRL.ki.wVk = 0x11; // virtual-key code for the "CTRL" key
  87. CTRL.ki.dwFlags = 0; // 0 for key press
  88. SendInput(1, &CTRL, sizeof(INPUT));
  89.  
  90. Sleep(100);
  91.  
  92. // Press the "V" key
  93. vKey.ki.wVk = 0x56; // virtual-key code for the "V" key
  94. vKey.ki.dwFlags = 0; // 0 for key press
  95. SendInput(1, &vKey, sizeof(INPUT));
  96.  
  97. Sleep(250);
  98.  
  99. // Release the "CTRL" key
  100. CTRL.ki.dwFlags = KEYEVENTF_KEYUP; // KEYEVENTF_KEYUP for key release
  101. SendInput(1, &CTRL, sizeof(INPUT));
  102.  
  103. Sleep(250);
  104.  
  105. // Release the "V" key
  106. vKey.ki.dwFlags = KEYEVENTF_KEYUP; // KEYEVENTF_KEYUP for key release
  107. SendInput(1, &vKey, sizeof(INPUT));
  108. }
  109.  
  110. Sleep(125);
  111.  
  112. if (GetKeyState(0x5A)) return 0;
  113.  
  114. Sleep(50);
  115.  
  116. SetCursorPos(durationTime.x, durationTime.y);
  117. Sleep(50);
  118. mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
  119. Sleep(50);
  120. mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
  121. Sleep(50);
  122.  
  123. if (GetKeyState(0x5A)) return 0;
  124.  
  125. SetCursorPos(bandwidth.x, bandwidth.y);
  126. Sleep(50);
  127. mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
  128. Sleep(50);
  129. mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
  130. Sleep(50);
  131.  
  132. if (GetKeyState(0x5A)) return 0;
  133.  
  134. SetCursorPos(launchStressTest.x, launchStressTest.y);
  135. Sleep(50);
  136. mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
  137. Sleep(100);
  138. mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
  139. Sleep(50);
  140.  
  141. if (GetKeyState(0x5A)) return 0;
  142.  
  143. }
  144.  
  145.  
  146. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement