Advertisement
FuskedLLCC

Untitled

Feb 10th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 12.80 KB | None | 0 0
  1.  
  2. #include "pch.h"
  3. #include <cstdlib>
  4. #include <float.h>
  5. #include <math.h>
  6. #include <string>
  7. #include <stdio.h>      
  8. #include <stdlib.h>
  9. #include <ctime>
  10. #include <iostream>
  11. #include <iomanip>
  12. #include <fstream>
  13. #include <strsafe.h>
  14. #include <winsock2.h>
  15. #include <wininet.h>
  16. #include <Windows.h>
  17. #include <windowsx.h>
  18. #include <algorithm>
  19. #include <tchar.h>
  20. #include <urlmon.h>
  21. #include <conio.h>
  22. #include <time.h>
  23. #include <intrin.h>    
  24. #include <iphlpapi.h>    
  25. #include <cstdint>
  26.  
  27. #pragma comment(lib, "iphlpapi.lib")
  28.  
  29. #pragma comment(lib, "urlmon.lib")
  30. #pragma comment(lib,"wininet.lib")
  31. #pragma comment(lib, "Iphlpapi.lib")
  32. #pragma comment(lib, "Urlmon.lib")
  33. #pragma comment(lib, "Ws2_32.lib")
  34. #pragma comment(lib, "winmm.lib")
  35. #pragma comment(lib, "Dbghelp.lib")
  36. #pragma comment(lib, "Advapi32.lib")
  37. #pragma comment(lib, "User32.lib")
  38.  
  39. #define WIN_32_LEAN_AND_MEAN
  40. #define VK_F4 0x73
  41. #define VK_F5 0x74     
  42. #define VK_W  0x57
  43. #define VK_D  0x44
  44. #define VK_A  0x41
  45. #define _CRT_SECURE_NO_WARNINGS
  46. #define HEART   ((char)0x03)
  47.  
  48.  
  49.  
  50.  
  51. HHOOK mouseHook;
  52. HHOOK keyboardHook;
  53.  
  54. BOOLEAN toggle;
  55. BOOLEAN hide = false;
  56. BOOLEAN mouseDown;
  57. BOOLEAN rmouseDown;
  58.  
  59. BOOLEAN firstClick;
  60.  
  61. long lastClick;
  62.  
  63. double s;
  64. double s2;
  65. double s3;
  66. double s4;
  67. double s5;
  68. double s6;
  69. double s7;
  70. double s8;
  71. double s9;
  72. double s10;
  73. double  h;
  74. int c;
  75. int c2;
  76. int c3;
  77. int c4;
  78. int c5;
  79. int c6;
  80. int c7;
  81. int c8;
  82. int c9;
  83. int c10;
  84.  
  85. int ucps;
  86. int cps;
  87. int cps2;
  88. int cps3;
  89. int cps4;
  90. int cps5;
  91. int cps6;
  92. int cps7;
  93. int cps8;
  94. int cps9;
  95. int cps10;
  96. double M;
  97. double N;
  98. double display;
  99. using namespace std;
  100.  
  101. double Double(double fMin, double fMax)
  102. {
  103.     double f = (double)rand() / RAND_MAX;
  104.     return fMin + f * (fMax - fMin);
  105. }
  106.  
  107. void WriteInColor(unsigned short color, string outputString)
  108. {
  109.     HANDLE hcon = GetStdHandle(STD_OUTPUT_HANDLE);
  110.     SetConsoleTextAttribute(hcon, color);
  111.     cout << outputString;
  112. }
  113.  
  114. void ChangeColor(unsigned short color)
  115. {
  116.     HANDLE hcon = GetStdHandle(STD_OUTPUT_HANDLE);
  117.     SetConsoleTextAttribute(hcon, color);
  118.    
  119. }
  120. void down()
  121. {
  122.     INPUT    Input = { 0 };
  123.     Input.type = INPUT_MOUSE;
  124.     Input.mi.dwFlags = 0x0002;
  125.     ::SendInput(1, &Input, sizeof(INPUT));
  126. }
  127. void up()
  128. {
  129.     INPUT    Input = { 0 };
  130.     ::ZeroMemory(&Input, sizeof(INPUT));
  131.     Input.type = INPUT_MOUSE;
  132.     Input.mi.dwFlags = 0x0004;
  133.     ::SendInput(1, &Input, sizeof(INPUT));
  134. }
  135.  
  136. void ClearConsole()
  137. {
  138.     HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
  139.     COORD coord = { 0, 0 };
  140.     DWORD count;
  141.     CONSOLE_SCREEN_BUFFER_INFO csbi;
  142.     if (GetConsoleScreenBufferInfo(hStdOut, &csbi))
  143.     {
  144.         FillConsoleOutputCharacter(hStdOut, (TCHAR)32, csbi.dwSize.X * csbi.dwSize.Y, coord, &count);
  145.         FillConsoleOutputAttribute(hStdOut, csbi.wAttributes, csbi.dwSize.X * csbi.dwSize.Y, coord, &count);
  146.         SetConsoleCursorPosition(hStdOut, coord);
  147.     }
  148.     return;
  149. }
  150. LRESULT CALLBACK MouseCallBack(int nCode, WPARAM wParam, LPARAM lParam)
  151. {
  152.     PMSLLHOOKSTRUCT pMouse = (PMSLLHOOKSTRUCT)lParam;
  153.     if (NULL != pMouse)
  154.     {
  155.         if (WM_MOUSEMOVE != wParam)
  156.         {
  157.             // if it returns 0 then its a real click, u can check here: https://msdn.microsoft.com/en-us/library/windows/desktop/ms644970(v=vs.85).aspx
  158.             if (0 == pMouse->flags)
  159.             {
  160.                 switch (wParam)
  161.                 {
  162.                 case WM_LBUTTONDOWN:
  163.                     mouseDown = TRUE;
  164.                     firstClick = TRUE;
  165.                     break;
  166.                 case WM_LBUTTONUP:
  167.                     mouseDown = FALSE;
  168.                     break;
  169.                 case WM_RBUTTONUP:
  170.                     rmouseDown = FALSE;
  171.                     break;
  172.                 case WM_RBUTTONDOWN:
  173.                     rmouseDown = TRUE;
  174.                     break;
  175.  
  176.                 }
  177.             }
  178.         }
  179.     }
  180.     return CallNextHookEx(mouseHook, nCode, wParam, lParam);
  181. }
  182.  
  183. LRESULT CALLBACK KeyboardCallBack(int nCode, WPARAM wParam, LPARAM lParam)
  184. {
  185.     PKBDLLHOOKSTRUCT keyStruct = (PKBDLLHOOKSTRUCT)lParam;
  186.     if (NULL != keyStruct
  187.         && WM_KEYUP == wParam
  188.         && VK_F4 == keyStruct->vkCode)
  189.     {
  190.         toggle = !toggle;
  191.     }
  192.     if (NULL != keyStruct
  193.         && WM_KEYUP == wParam
  194.         && VK_RSHIFT == keyStruct->vkCode)
  195.     {
  196.         hide = !hide;
  197.     }
  198.     return CallNextHookEx(keyboardHook, nCode, wParam, lParam);
  199. }
  200.  
  201. DWORD WINAPI HookThread(LPVOID lParam)
  202. {
  203.     mouseHook = SetWindowsHookEx(WH_MOUSE_LL, &MouseCallBack, NULL, NULL);
  204.     keyboardHook = SetWindowsHookEx(WH_KEYBOARD_LL, &KeyboardCallBack, NULL, NULL);
  205.  
  206.     MSG msg;
  207.     while (GetMessage(&msg, NULL, 0, 0))
  208.     {
  209.         TranslateMessage(&msg);
  210.         DispatchMessage(&msg);
  211.     }
  212.  
  213.     UnhookWindowsHookEx(mouseHook);
  214.     UnhookWindowsHookEx(keyboardHook);
  215.     return 0;
  216. }
  217.  
  218. int RandomInt(int min, int max)
  219. {
  220.     srand(time(NULL));
  221.     return ((rand() % (int)(((max)+1) - (min))) + (min));
  222. }
  223.  
  224. DWORD WINAPI ClickThread(LPVOID lParam)
  225. {
  226.  
  227.     while (TRUE)
  228.     {
  229.         Sleep(1);
  230.         if (mouseDown && toggle)
  231.         {  
  232.             if (firstClick)
  233.             {
  234.                 Sleep(30);
  235.                 up();
  236.                 firstClick = FALSE;
  237.             }
  238.             else
  239.             {
  240.                 if (rmouseDown)
  241.                 {
  242.                     cps=ucps + 2;
  243.                 }
  244.                 double cha = Double(20, 50);
  245.                 double cha2 = Double(20, cha);
  246.                 double cha3 = Double(20, cha2);
  247.                 double cha4 = Double(cha3, 50);
  248.                 double cha5 = Double(cha4, 50);
  249.                 double cha6 = Double(20, cha5);
  250.                 double cha7 = Double(cha6, 50);
  251.                 double cha8 = Double(20, cha7);
  252.                 double cha9 = Double(cha8, 50);
  253.                 double cha10 = Double(20, cha9);
  254.                 int c = RandomInt(9, 11);
  255.                 int c2 = RandomInt(9, 11);
  256.                 int c3 = RandomInt(9, 11);
  257.                 int c4 = RandomInt(9, 11);
  258.                 int c5 = RandomInt(9, 11);
  259.                 int c6 = RandomInt(9, 11);
  260.                 int c7 = RandomInt(9, 11);
  261.                 int c8 = RandomInt(9, 11);
  262.                 int c9 = RandomInt(9, 11);
  263.                 int c10 = RandomInt(9, 11);
  264.                 double b = Double(1, 2);
  265.                 double b2 = Double(1, 2);
  266.                 double b3 = Double(1, 2);
  267.                 double b4 = Double(1, 2);
  268.                 double b5 = Double(1, 2);
  269.                 double b6 = Double(1, 2);
  270.                 double b7 = Double(1, 2);
  271.                 double b8 = Double(1, 2);
  272.                 double b9 = Double(1, 2);
  273.                 double b10 = Double(1, 2);
  274.                 double cpsA;
  275.                 cpsA = cps + b;
  276.                 double cpsB;
  277.                 cpsB = cps - b2;
  278.                 double cpsC;
  279.                 cpsC = cps + b3;
  280.                 double cpsD;
  281.                 cpsD = cps + b4;
  282.                 double cpsI;
  283.                 cpsI = cps + b5;
  284.                 double cpsH;
  285.                 cpsH = cps - b6;
  286.                 double cpsG;
  287.                 cpsG = cps + b7;
  288.                 double cpsT;
  289.                 cpsT = cps - b8;
  290.                 double cpsL;
  291.                 cpsL = cps - b9;
  292.                 double cpsS;
  293.                 cpsS = cps + b10;
  294.                 double cps2 = Double(cps, cpsA);
  295.                 double cps3 = Double(cps, cps2);
  296.                 double cps4 = Double(cps, cps3);
  297.                 double cps5 = Double(cps2, cps3);
  298.                 double cps6 = Double(cps, cps2);
  299.                 double cps7 = Double(cps4, cps5);
  300.                 double cps8 = Double(cps3, cps);
  301.                 double cps9 = Double(cps3, cps2);
  302.                 double cps10 = Double(cps7, cps);
  303.                 int g;
  304.                 int g2;
  305.                 int g3;
  306.                 int g4;
  307.                 int g5;
  308.                 int g6;
  309.                 int g7;
  310.                 int g8;
  311.                 int g9;
  312.                 double rmax1 = Double(0, 2);
  313.                 double rmax2 = Double(0, 2);
  314.                 double rmax3 = Double(0, 2);
  315.                 double rmax4 = Double(0, 2);
  316.                 double rmax5 = Double(0, 2);
  317.                 double rmax6 = Double(0, 2);
  318.                 double rmax7 = Double(0, 2);
  319.                 double rmax8 = Double(0, 2);
  320.                 double rmax9 = Double(0, 2);
  321.                 double rmax10 = Double(0, 2);
  322.                 s = (double)rand() / (RAND_MAX + rmax1) + cps + (rand() % c);
  323.                 if (rand() % 100 < cha) { g = cpsA + 1; }
  324.                 else { g = cpsA; }
  325.                 s2 = (double)rand() / (RAND_MAX + rmax2) + g + (rand() % c2);
  326.                 if (rand() % 100 < cha2) { g2 = cps2 + 1; }
  327.                 else { g2 = cpsA; }
  328.                 s3 = (double)rand() / (RAND_MAX + rmax3) + g2 + (rand() % c3);
  329.                 if (rand() % 100 < cha3) { g3 = cps + 1; }
  330.                 else { g3 = cpsA; }
  331.                 s4 = (double)rand() / (RAND_MAX + rmax4) + g3 + (rand() % c4);
  332.                 if (rand() % 100 < cha4) { g4 = cpsC; }
  333.                 else { g4 = cpsB; }
  334.                 s5 = (double)rand() / (RAND_MAX + rmax5) + g4 + (rand() % c5);
  335.                 if (rand() % 100 < cha5) { g5 = cpsG; }
  336.                 else { g5 = cpsD; }
  337.                 s6 = (double)rand() / (RAND_MAX + rmax6) + g5 + (rand() % c6);
  338.                 if (rand() % 100 < cha6) { g6 = cpsI + 1; }
  339.                 else { g6 = cpsA; }
  340.                 s7 = (double)rand() / (RAND_MAX + rmax7) + g6 + (rand() % c7);
  341.                 if (rand() % 100 < cha7) { g7 = cpsI + 1; }
  342.                 else { g7 = cpsL; }
  343.                 s8 = (double)rand() / (RAND_MAX + rmax8) + g7 + (rand() % c8);
  344.                 if (rand() % 100 < cha8) { g8 = cpsL + 1; }
  345.                 else { g8 = cpsA; }
  346.                 s9 = (double)rand() / (RAND_MAX + rmax9) + g8 + (rand() % c9);
  347.                 if (rand() % 100 < cha9) { g9 = cpsI + 1; }
  348.                 else { g9 = cpsB; }
  349.                 s10 = (double)rand() / (RAND_MAX + rmax10) + g9 + (rand() % c10);
  350.                 M = (s + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10) / 10;
  351.                 double negativ = (3, 6);
  352.                 double delay = 1000 / (M - negativ);
  353.                 display = 970 / delay;
  354.                 if ((clock() - lastClick) > delay)
  355.                 {
  356.                     down();
  357.                     //calling left down
  358.                     //delay betwen clicks. waiting till clock-last click is > than M
  359.                     lastClick = clock();
  360.                     //bypass for cb check
  361.                     Sleep(RandomInt(20, 35));
  362.                     //calling left up
  363.                     up();
  364.                 }
  365.             }
  366.         }
  367.  
  368.     }
  369. }
  370. void selfdestructed()
  371. {
  372.     system("color F3");
  373.     cout << "Self Destructed !!! ";
  374.     cout << "Delete Autoclicker with Shift+Delete !!! ";
  375. }
  376. void selfdestruct()
  377. {
  378.     WriteInColor(22, "");
  379.     system("reg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Compatibility Assistant\\Store \" /f \n");
  380.     system("reg delete \"HKEY_CURRENT_USER\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\MuiCache \" /f \n");
  381.     system("reg delete \"HKEY_CURRENT_USER\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\Bags \" /f \n");
  382.     system("reg delete \"HKEY_CURRENT_USER\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\BagMRU \" /f \n");
  383.     system("reg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Bags \" /f \n");
  384.     system("reg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\BagMRU \" /f \n");
  385.     system("reg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Compatibility Assistant\\Store \" /f \n");
  386.     system("reg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Compatibility Assistant\\Persisted \" /f \n");
  387.     system("reg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ShellNoRoam\\MUICache \" /f \n");
  388.     system("reg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ComDlg32\\OpenSavePidlMRU \" /f \n");
  389.     system("reg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ComDlg32\\LastVisitedPidlMRU \" /f \n");
  390.     system("reg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ComDlg32\\LastVisitedPidlMRULegacy \" /f \n");
  391.     system("reg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ComDlg32\\OpenSaveMRU \" /f \n");
  392.     system("reg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\UserAssist \" /f \n");
  393.     system("for /F \"tokens=*\" % 1 in('wevtutil.exe el') DO wevtutil.exe cl \"%1\"");
  394.     system("del C:\\Windows\\Prefetch\\*.* /Q");
  395. }
  396. void features()
  397. {
  398.     if (GetAsyncKeyState(VK_F8))
  399.     {
  400.         selfdestruct();
  401.         selfdestructed();
  402.     }
  403. }
  404.  
  405. int wmain()
  406. {
  407.    
  408.         TCHAR volumeName[MAX_PATH + 1] = { 0 };
  409.         TCHAR fileSystemName[MAX_PATH + 1] = { 0 };
  410.         DWORD serialNumber = 0;
  411.         DWORD maxComponentLen = 0; 
  412.         DWORD fileSystemFlags = 0; 
  413.         if (GetVolumeInformation(
  414.             _T("C:\\"),
  415.             volumeName,
  416.             ARRAYSIZE(volumeName),
  417.             &serialNumber,
  418.             &maxComponentLen,
  419.             &fileSystemFlags,
  420.             fileSystemName,
  421.             ARRAYSIZE(fileSystemName)))
  422.                 {
  423.                         _tprintf(_T("Volume Name: %s\n"), volumeName);     
  424.                         _tprintf(_T("Serial Number: %lu\n"), serialNumber);    
  425.                         _tprintf(_T("File System Name: %s\n"), fileSystemName);    
  426.                         _tprintf(_T("Max Component Length: %lu\n"), maxComponentLen);  
  427.                 }
  428.        
  429.     cout << "Please enter cps: ";
  430.     Sleep(555);
  431.     cin >> ucps;
  432.     cps = ucps;
  433.     SetConsoleTitle(L"");
  434.     CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&HookThread, NULL, 0, 0);
  435.     CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&ClickThread, NULL, 0, 0);
  436.    
  437.         while (TRUE)
  438.     {
  439.         Sleep(300);
  440.         system("cls");
  441.         features();
  442.         WriteInColor(4, "SkidClicker v2.0.5 \n");
  443.         WriteInColor(5, "Made with ");
  444.         WriteInColor(5, "love");
  445.         WriteInColor(5, " by the SkidderBoy him self");
  446.         WriteInColor(6, "\n");
  447.  
  448.         WriteInColor(15, "SelfDestruct ");
  449.         WriteInColor(7, "[");
  450.         WriteInColor(14, "F8");
  451.         WriteInColor(7, "]\n");
  452.         WriteInColor(15, "Toggle ");
  453.         WriteInColor(7, "[");
  454.         WriteInColor(14, "F4");
  455.         WriteInColor(7, "]\n");
  456.         WriteInColor(15, "Status:");
  457.         if (toggle)
  458.         {
  459.             WriteInColor(7, "[");
  460.             WriteInColor(10, "On");
  461.             WriteInColor(7, "]\t");
  462.         }
  463.         else
  464.         {
  465.             WriteInColor(7, "[");
  466.             WriteInColor(12, "Off");
  467.             WriteInColor(7, "]\t");
  468.         }
  469.         if (hide)
  470.         {
  471.             ShowWindow(GetConsoleWindow(), SW_HIDE);
  472.         }
  473.         else
  474.         {
  475.             ShowWindow(GetConsoleWindow(), SW_RESTORE);
  476.         }
  477.         WriteInColor(15, "CPS=");
  478.         WriteInColor(5, "");
  479.         printf("%.1lf",display );
  480.         WriteInColor(15, "\nRightShift to Hide/Unhide");
  481.  
  482.     }
  483.     printf(" error\n");
  484.     _getch();
  485.     return 1;
  486.  
  487. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement