Guest User

FPSMonitor

a guest
May 19th, 2015
2,113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 17.41 KB | None | 0 0
  1. FPSMonitor full sourcecode:
  2. "MAIN.CPP"
  3. #include "stdafx.h"
  4. //[junk_enable 8 32 /]
  5. //[enc_string_enable /]
  6. //[swap_lines]
  7. #define PUSH 0x50
  8. #define POP  0x58
  9. #define NOP  0x90
  10. //[/swap_lines]
  11. //[swap_lines]
  12. #define JUNK1 __asm _emit PUSH
  13. #define JUNK2 __asm _emit NOP
  14. #define JUNK3 __asm _emit NOP
  15. #define JUNK4 __asm _emit NOP
  16. #define JUNK5 __asm _emit NOP
  17. #define JUNK6 __asm _emit NOP
  18. #define JUNK7 __asm _emit NOP
  19. #define JUNK8 __asm _emit POP
  20. //[/swap_lines]
  21. #define JUNK JUNK1 JUNK2 JUNK3 JUNK4 JUNK5 JUNK6 JUNK7 JUNK8
  22.  
  23. #pragma region project
  24.  
  25. #pragma region thisthing
  26.  
  27. //these change with updates
  28. #pragma region group1
  29. //[swap_lines]
  30. DWORD DwEL = 0x4A0F014;//m_dwEntityList
  31. DWORD DwEP = 0x55A434;//m_dwEnginePosition
  32. DWORD DwLP = 0x00a7094c;//m_dwLocalPlayer
  33. DWORD DwVA = 0x4CE0;//m_dwViewAngles
  34. //[/swap_lines]
  35. #pragma endregion
  36.  
  37. //these normally don't
  38. #pragma region group2
  39. //[swap_lines]
  40. const DWORD DwMBS = 0x0935;//m_bSpotted
  41. const DWORD DwCI = 0x2400;//m_iCrossHairID
  42. const DWORD DwVVO = 0x104;//m_vecViewOffset
  43. const DWORD DwVO = 0x134;//m_vecOrigin
  44. const DWORD DwVP = 0x13e8;//m_vecPunch
  45. const DWORD DwTN = 0xF0;//m_iTeamNum
  46. const DWORD DwSF = 0x1d60;//m_iShotsFired
  47. const DWORD DwBM = 0xA78;//m_dwBoneMatrix
  48. const DWORD DwES = 0x10;//entity size never changes
  49. const DWORD DwLS = 0x25B;//m_lifeState
  50. const DWORD DwVV = 0x110;//m_vecVelocity
  51. //[/swap_lines]
  52. #pragma endregion
  53.  
  54. #pragma region group3//other shit
  55. //[swap_lines]
  56.  
  57.  
  58. //Afrikaans for Trigger Button
  59. int SnellerMaar = VK_DOWN;
  60. //Afrikaans for Radar(vision) Button
  61. int VisieMaar = VK_UP;
  62.  
  63.  
  64. //Afrikaans for TargetProcess
  65. HANDLE Teiken;
  66. //DwClient
  67. DWORD DwCl;
  68. //DwEngine
  69. DWORD DwEn;
  70.  
  71. //Afrikaans for kill
  72. bool Doodmaak = false;
  73.  
  74. //Afrikaans for ThreadPaused
  75. bool DraadGestop = false;
  76.  
  77. //Afrikaans for Trigger
  78. bool Sneller= true;
  79. //Afrikaans for Aim
  80. bool Doel = false;
  81.  
  82. string aval = "OFF";
  83. string tval = "ON";
  84.  
  85. //PitchMinPunch afrikaans for little
  86. float pbietjie = 2.f;
  87. //PitchMaxPunch afrikaans for lots
  88. float pbaie = 2.f;
  89. //YawMinPunch afrikaans for little
  90. float ybietjie = 2.f;
  91. //YawMaxPunch afrikaans for lots
  92. float ybaie = 2.f;
  93. //TargetBone
  94. int tb = 10;
  95. //SmoothAmount
  96. float sa = 5.f;
  97. //NumberOfPlayers
  98. int nop = 16;
  99.  
  100. //[/swap_lines]
  101. #pragma endregion
  102.  
  103. #pragma endregion
  104. //[junk_disable /]
  105. //[enc_string_disable /]
  106. struct PModule {
  107.     DWORD ba, si;
  108. };
  109. //[junk_enable 1 11 /]
  110. //[enc_string_enable /]
  111.  
  112. //modengine modclient
  113. PModule meng, mcli;
  114.  
  115. struct
  116. {
  117.     //Afrikaans for read (dword address,isarray,elementcount,srcdata)
  118.     template <typename ReadType> ReadType Lees(DWORD Ad, bool iar = false, int ec = 1, ReadType sd = 0)
  119.     {
  120.         if (!iar)
  121.         {
  122.             ReadType Data;JUNK;
  123.             ReadProcessMemory(Teiken, (LPVOID)(Ad), &Data, sizeof(ReadType), 0);JUNK;
  124.             return Data;JUNK;
  125.         }
  126.         else if (iar)
  127.         {
  128.             ReadProcessMemory(Teiken, (LPVOID)(Ad), (ReadType*)sd, sizeof(ReadType)* ec, 0);JUNK;
  129.             return NULL;JUNK;
  130.         }
  131.         return NULL;
  132.     }
  133.  
  134.     //Afrikaans for write (dword address,writetype data, isarray, elementcount)
  135.     template<typename WriteType> WriteType Skryf(DWORD Ad, WriteType Da, bool iar = false, int ec = 1)
  136.     {
  137.         if (!iar)
  138.         {
  139.             WriteProcessMemory(Teiken, (LPVOID)(Ad), &Da, sizeof(WriteType)* ec, 0);JUNK;
  140.             return Da;JUNK;
  141.         }
  142.         else if (iar)
  143.         {
  144.             WriteProcessMemory(Teiken, (LPVOID)(Ad), (WriteType*)Da, sizeof(WriteType)* ec, 0);JUNK;
  145.             return NULL;JUNK;
  146.         }
  147.         return NULL;
  148.     }
  149.    
  150.     //Afrikaans for Compare DataCompare
  151.     bool Vergelyk(const BYTE* pD, const BYTE* pM, const char* pzM) {
  152.         for (; *pzM; ++pzM, ++pD, ++pM) {
  153.             if (*pzM == 'x' && *pD != *pM) {
  154.                 return false;JUNK;
  155.             }
  156.         }
  157.  
  158.         return (*pzM == NULL);JUNK;
  159.     }
  160.  
  161.  
  162.     //AfriKaans for FindPatternMultiple FindPatternARR(start,size,mask,count)
  163.     DWORD VindPatroonVeelvuldige(DWORD st, DWORD sz, const char* ma, int co, ...) {
  164.         char* si = new char[co + 1];JUNK;
  165.         va_list ap;JUNK;
  166.         va_start(ap, co);JUNK;
  167.         for (int i = 0; i < co; i++) {
  168.             char read = va_arg(ap, char);
  169.             si[i] = read;JUNK;
  170.         }
  171.         va_end(ap);JUNK;
  172.         si[co] = '\0';JUNK;
  173.  
  174.         return VindPatroon(st, sz, si, ma);JUNK;
  175.     }
  176.  
  177.  
  178.     //Afrikaans for FindPattern (start,size,sig,mask)
  179.     DWORD VindPatroon(DWORD st, DWORD sz, const char* si, const char* ma) {
  180.         BYTE* da = new BYTE[sz];JUNK;
  181.  
  182.         unsigned long bytesRead;JUNK;
  183.  
  184.         if (!ReadProcessMemory(Teiken, (LPVOID)st, da, sz, &bytesRead)) {
  185.             return NULL;JUNK;
  186.         }
  187.  
  188.         for (DWORD i = 0; i < sz; i++) {
  189.             if (Vergelyk((const BYTE*)(da + i), (const BYTE*)si, ma)) {
  190.                 return st + i;JUNK;
  191.             }
  192.         }
  193.  
  194.         return NULL;
  195.     }
  196.  
  197. }Geheue;//Afrikaans for Memory
  198.  
  199. //Afrikaans GetModuleHandleByName (ModuleName,Proccessid)
  200. PModule KryMhanteerdeur(char* MN, DWORD PI)
  201. {
  202.     HANDLE module = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, PI);JUNK;
  203.     MODULEENTRY32 mEnt;JUNK;
  204.     mEnt.dwSize = sizeof(mEnt);JUNK;
  205.  
  206.     do {
  207.         if (!strcmp(mEnt.szModule, (LPSTR)MN)) {
  208.             CloseHandle(module);JUNK;
  209.  
  210.             PModule mod;JUNK;
  211.             mod.ba = (DWORD)mEnt.modBaseAddr;JUNK;
  212.             mod.si = mEnt.modBaseSize;JUNK;
  213.             return mod;JUNK;
  214.         }
  215.     } while (Module32Next(module, &mEnt));JUNK;
  216.  
  217.     CloseHandle(module);JUNK;
  218.  
  219.     PModule mode = { 0, 0 };JUNK;
  220.     return mode;JUNK;
  221. }
  222.  
  223. //Afrikaans for GetProccesshandleByName
  224. HANDLE KryProseshanteerdeur(char* pn)
  225. {
  226.     PROCESSENTRY32 ENTRY;JUNK;
  227.     ENTRY.dwSize = sizeof(PROCESSENTRY32);JUNK;
  228.     HANDLE HSNAP = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, NULL);JUNK;
  229.     if (Process32First(HSNAP, &ENTRY) == TRUE)
  230.     {
  231.         if (!strcmp(ENTRY.szExeFile, pn))
  232.         {
  233.             HANDLE HPROC = OpenProcess(PROCESS_ALL_ACCESS, FALSE, ENTRY.th32ProcessID);JUNK;
  234.             return HPROC;JUNK;
  235.         }
  236.         else
  237.         {
  238.             while (Process32Next(HSNAP, &ENTRY) == TRUE)
  239.             {
  240.                 if (!strcmp(ENTRY.szExeFile, pn))
  241.                 {
  242.                     HANDLE HPROC = OpenProcess(PROCESS_ALL_ACCESS, FALSE, ENTRY.th32ProcessID);JUNK;
  243.                     return HPROC;JUNK;
  244.                 }
  245.             }
  246.             return 0;JUNK;
  247.         }
  248.     }
  249.     CloseHandle(HSNAP);JUNK;
  250. }
  251.  
  252. #pragma endregion
  253.  
  254. struct
  255. {
  256.     //base entity
  257.     DWORD BE(int PN)
  258.     {
  259.         return Geheue.Lees<DWORD>(DwCl + DwEL + (DwES * PN));JUNK;
  260.     }
  261.  
  262.     //isdead
  263.     bool ID(int PN)
  264.     {
  265.         DWORD DWBE = BE(PN);JUNK;
  266.         if (DWBE)
  267.         {
  268.             return Geheue.Lees<bool>(DWBE + DwLS);JUNK;
  269.         }
  270.     }
  271.  
  272.     //GetTeam
  273.     int GT(int PN)
  274.     {
  275.         DWORD DWBE = BE(PN);JUNK;
  276.         if (DWBE)
  277.         {
  278.             return Geheue.Lees<int>(DWBE + DwTN);JUNK;
  279.         }
  280.     }
  281.     //mbspotted
  282.     int MBS(int PN)
  283.     {
  284.         DWORD DWBE = BE(PN);JUNK;
  285.         if (DWBE)
  286.         {
  287.             return Geheue.Lees<int>(DWBE + DwMBS);JUNK;
  288.         }
  289.     }
  290.     //getvelocity
  291.     void GV(int PN, float* B)
  292.     {
  293.         DWORD DWBE = BE(PN);JUNK;
  294.         if (DWBE)
  295.         {
  296.             Geheue.Lees<float*>(DWBE + DwVV, true, 3, B);JUNK;
  297.         }
  298.     }
  299.     //GetBonePosition
  300.     void GBP(int PN, float* BonePosition)
  301.     {
  302.         DWORD DWBE = BE(PN);JUNK;
  303.         if (DWBE)
  304.         {
  305.             DWORD BM = Geheue.Lees<DWORD>(DWBE + DwBM);JUNK;
  306.             if (BM)
  307.             {
  308.                 Geheue.Lees<float*>(BM + 0x30 * tb + 0x0C, true, 1, &BonePosition[0]);JUNK;
  309.                 Geheue.Lees<float*>(BM + 0x30 * tb + 0x1C, true, 1, &BonePosition[1]);JUNK;
  310.                 Geheue.Lees<float*>(BM + 0x30 * tb + 0x2C, true, 1, &BonePosition[2]);JUNK;
  311.             }
  312.         }
  313.     }
  314. }EntiteitLys;//Afrikaans for EntityList
  315.  
  316. typedef unsigned long WEAPON_HANDLE;
  317. struct
  318. {  
  319.     //Player Base
  320.     DWORD PB()
  321.     {
  322.         return Geheue.Lees<DWORD>(DwCl + DwLP);JUNK;
  323.     }
  324.  
  325.     //SetAngles
  326.     void SA(float* Angles)
  327.     {
  328.         DWORD AnglePointer = Geheue.Lees<DWORD>(DwEn + DwEP);JUNK;
  329.         if (AnglePointer)
  330.         {
  331.             Geheue.Skryf<float*>(AnglePointer + DwVA, Angles, true, 3);JUNK;
  332.         }
  333.     }
  334.  
  335.     //getteam
  336.     int GT()
  337.     {
  338.         DWORD DWPB = PB();JUNK;
  339.         if (DWPB)
  340.         {
  341.             return Geheue.Lees<int>(DWPB + DwTN);JUNK;
  342.         }
  343.     }
  344.  
  345.  
  346.     //GetVelocity
  347.     void GV(float* Buffer)
  348.     {
  349.         DWORD DWPB = PB();JUNK;
  350.         if (DWPB)
  351.         {
  352.             Geheue.Lees<float*>(DWPB + DwVV, true, 3, Buffer);JUNK;
  353.         }
  354.     }
  355.     //GetAngles
  356.     void GA(float* Angles)
  357.     {
  358.         DWORD AnglePointer = Geheue.Lees<DWORD>(DwEn + DwEP);JUNK;
  359.         if (AnglePointer)
  360.         {
  361.             Geheue.Lees<float*>(AnglePointer + DwVA, true, 3, Angles);JUNK;
  362.         }
  363.     }
  364.  
  365.     //GetPlayer
  366.     void GP(float* Punch)
  367.     {
  368.         DWORD DWPB = PB();JUNK;
  369.         if (DWPB)
  370.         {
  371.             Geheue.Lees<float*>(DWPB + DwVP, true, 2, Punch);JUNK;
  372.         }
  373.     }
  374.  
  375.     //GetCrosshairID
  376.     int CI()
  377.     {
  378.         DWORD DWPB = PB();JUNK;
  379.         if (DWPB)
  380.         {
  381.             return Geheue.Lees<int>(DWPB + DwCI) - 1;JUNK;
  382.         }
  383.     }
  384.  
  385.  
  386.     //GetPosition
  387.     void GPO(float* Position)
  388.     {
  389.         DWORD DWPB = PB();JUNK;
  390.         if (DWPB)
  391.         {
  392.             Geheue.Lees<float*>(DWPB + DwVO, true, 3, Position);JUNK;
  393.         }
  394.     }
  395.     //Afrikaan for vision aka radar
  396.     void Visie(int PN){
  397.        
  398.         DWORD DWBE = EntiteitLys.BE(PN);JUNK;
  399.  
  400.         if (GetAsyncKeyState(VisieMaar) != 0)
  401.         {
  402.             if(EntiteitLys.MBS(PN) == 0){
  403.                 Geheue.Skryf<int>(DWBE + DwMBS, 1, false);JUNK;
  404.             }
  405.         }
  406.     }
  407.  
  408.     //GetViewOffset
  409.     float GVO()
  410.     {
  411.         DWORD DWPB = PB();JUNK;
  412.         if (DWPB)
  413.         {
  414.             float Vecview[3];JUNK;
  415.             Geheue.Lees<float*>(DWPB + DwVVO, true, 3, Vecview);JUNK;
  416.             return Vecview[2];JUNK;
  417.         }
  418.     }
  419.  
  420.     //GetShotsFired
  421.     int GSF()
  422.     {
  423.         DWORD DWPB = PB();JUNK;
  424.         if (DWPB)
  425.         {
  426.             return Geheue.Lees<int>(DWPB + DwSF);JUNK;
  427.         }
  428.     }
  429.  
  430. }Speler;//Afrikaans for player
  431.  
  432. //Afrikaans for angle
  433. void hoekN(float* hoek)
  434. {
  435.     if (hoek[0] > 89.0f && hoek[0] <= 180.0f)
  436.     {
  437.         hoek[0] = 89.0f;
  438.     }
  439.     if (hoek[0] > 180.f)
  440.     {
  441.         hoek[0] -= 360.f;
  442.     }
  443.     if (hoek[0] < -89.0f)
  444.     {
  445.         hoek[0] = -89.0f;
  446.     }
  447.     if (hoek[1] > 180.f)
  448.     {
  449.         hoek[1] -= 360.f;
  450.     }
  451.     if (hoek[1] < -180.f)
  452.     {
  453.         hoek[1] += 360.f;
  454.     }
  455.     if (hoek[2] != 0.0f)
  456.     {
  457.         hoek[2] = 0.0f;
  458.     }
  459. }
  460.  
  461. void Visie()
  462. {
  463. //[junk_disable /]
  464.     for (int i = 0; i < nop; i++)
  465.     {
  466. //[junk_enable 1 15 /]
  467.         Speler.Visie(i);JUNK;
  468.     }
  469. }
  470.  
  471. //Afrikaans for calcangle
  472. void berekenhoek(float *src, float *dst, float *hoeke)
  473. {
  474.     random_device Random;
  475.     mt19937 RandomGen(Random());
  476.     uniform_real<float> RandomXdistrib(pbietjie, pbaie);
  477.     uniform_real<float> RandomYdistrib(ybietjie, ybaie);
  478.     float MyPunch[2];
  479.     Speler.GP(MyPunch);
  480.     float pitchreduction = RandomXdistrib(RandomGen);
  481.     float yawreduction = RandomYdistrib(RandomGen);
  482.     float delta[3] = { (src[0] - dst[0]), (src[1] - dst[1]), ((src[2] + Speler.GVO()) - dst[2]) };
  483.     float hyp = sqrt(delta[0] * delta[0] + delta[1] * delta[1]);
  484.     hoeke[0] = atanf(delta[2] / hyp) * 57.295779513082f - MyPunch[0] * pitchreduction;
  485.     hoeke[1] = atanf(delta[1] / delta[0]) * 57.295779513082f - MyPunch[1] * yawreduction;
  486.     hoeke[2] = 0.0f;
  487.     if (delta[0] >= 0.0)
  488.     {
  489.         hoeke[1] += 180.0f;
  490.     }
  491. }
  492. //smoothangleset(destination,origin)
  493. void SAS(float* d, float* o)
  494. {
  495.     float SMA[3];
  496.     SMA[0] = d[0] - o[0];
  497.     SMA[1] = d[1] - o[1];
  498.     SMA[2] = 0.0f;
  499.     hoekN(SMA);
  500.     SMA[0] = o[0] + SMA[0] / 100.0f * sa;
  501.     SMA[1] = o[1] + SMA[1] / 100.0f * sa;
  502.     SMA[2] = 0.0f;
  503.     hoekN(SMA);
  504.     Speler.SA(SMA);
  505.     Sleep(1);
  506. }
  507.  
  508. void c()
  509. {
  510.     mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);JUNK;
  511.     Sleep(1);JUNK;
  512.     mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);JUNK;
  513.     Sleep(30);JUNK;
  514. }
  515.  
  516. //velocitycomp(PlayerNumber,Enemy Position)
  517. void VC(int PN, float* EP)
  518. {
  519.     //enemy velocity
  520.     float EV[3];
  521.     //my velocity
  522.     float MV[3];
  523.     EntiteitLys.GV(PN, EV);
  524.     Speler.GV(MV);
  525.     EP[0] = EP[0] + (EV[0] / 100.f) * (40.f / sa); //not sure why 40 works. I tried a lot of different values and 40 seems to scale perfectly
  526.     EP[1] = EP[1] + (EV[1] / 100.f) * (40.f / sa);
  527.     EP[2] = EP[2] + (EV[2] / 100.f) * (40.f / sa);
  528.     EP[0] = EP[0] - (MV[0] / 100.f) * (40.f / sa);
  529.     EP[1] = EP[1] - (MV[1] / 100.f) * (40.f / sa);
  530.     EP[2] = EP[2] - (MV[2] / 100.f) * (40.f / sa);
  531. }
  532.  
  533. DWORD WINAPI AB(LPVOID params)
  534. {
  535.     cout << "$ thread is running..." << endl;JUNK;
  536.     while (true)
  537.     {
  538.         Sleep(1);JUNK;
  539.         if (Doodmaak)
  540.         {
  541.             cout << "$ Ending thread..." << endl;
  542.             ExitThread(0);JUNK;
  543.         }
  544.         if (Doel || Sneller)
  545.         {
  546.             DraadGestop = false;JUNK;
  547.             if (Doel)
  548.             {
  549.                 int PN = Speler.CI();JUNK;
  550.                 while (Speler.GSF() > 1 && PN < 64 && PN >= 0 && EntiteitLys.GT(PN) != Speler.GT() && EntiteitLys.ID(PN) != true)
  551.                 {
  552.                     //TempPlayerNumber
  553.                     int TPN = Speler.CI();JUNK;
  554.                     if (TPN < 64 && TPN >= 0 && EntiteitLys.GT(TPN) != Speler.GT() && EntiteitLys.ID(TPN) != true)
  555.                     {
  556.                         PN = TPN;JUNK;
  557.                     }
  558.                     //Player Position
  559.                     float PPO[3];
  560.                     //Enemy Position
  561.                     float EP[3];
  562.                     //AimAngle
  563.                     float AA[3];
  564.                     //CurrentAngle
  565.                     float CA[3];
  566.                     Speler.GPO(PPO);
  567.                     EntiteitLys.GBP(PN, EP);
  568.                     VC(PN, EP);
  569.                     berekenhoek(PPO, EP, AA);
  570.                     hoekN(AA);
  571.                     Speler.GA(CA);
  572.                     hoekN(CA);
  573.                     SAS(AA, CA);
  574.                     Sleep(1);
  575.                 }
  576.             }
  577.             if (Sneller)
  578.             {
  579.                 if (GetAsyncKeyState(SnellerMaar) != 0)
  580.                 {
  581.                    
  582.                     int PN = Speler.CI();JUNK;
  583.                     if (PN < 64 && PN >= 0 && EntiteitLys.GT(PN) != Speler.GT() && EntiteitLys.ID(PN) != true)
  584.                     {
  585.                        
  586.                         c();JUNK;
  587.                     }
  588.                     else
  589.                     {
  590.                         Sleep(1);JUNK;
  591.                     }
  592.                 }
  593.  
  594.  
  595.             }
  596.             if (GetAsyncKeyState(VisieMaar) != 0){
  597.                 Visie();JUNK;
  598.                 Sleep(500);JUNK;
  599.             }
  600.         }
  601.         else
  602.         {
  603.             DraadGestop = true;JUNK;
  604.             Sleep(500);JUNK;
  605.         }
  606.     }
  607. }
  608.  
  609. void Init()
  610. {
  611.     cout << "$ Waiting for process..." << endl;
  612.     Teiken = NULL;
  613.     while (!Teiken)
  614.     {
  615.         cout << ".";
  616.         Teiken = KryProseshanteerdeur("csgo.exe");
  617.         Sleep(500);
  618.     }
  619.     cout << endl;
  620.     //Client Handle
  621.     cout << "$ CH..." << endl;
  622.     DwCl = NULL;
  623.     while (!DwCl)
  624.     {
  625.         cout << ".";
  626.         mcli = KryMhanteerdeur("client.dll", GetProcessId(Teiken));
  627.         DwCl = mcli.ba;
  628.         Sleep(500);
  629.     }
  630.     cout << endl;
  631.     //Engine Handle
  632.     cout << "$ EH..." << endl;
  633.     DwEn = NULL;
  634.     while (!DwEn)
  635.     {
  636.         cout << ".";
  637.         meng = KryMhanteerdeur("engine.dll", GetProcessId(Teiken));
  638.         DwEn = meng.ba;
  639.         Sleep(500);
  640.     }
  641.     cout << endl;
  642.     //Local player offset
  643.     cout << "$ LPO..." << endl;
  644.     DwLP = 0x0;
  645.     while (!DwLP) {
  646.         cout << ".";
  647.         DWORD lpStart = Geheue.VindPatroonVeelvuldige(mcli.ba, mcli.si, "xxx????xx????xxxxx?", 19, 0x8D, 0x34, 0x85, 0x0, 0x0, 0x0, 0x0, 0x89, 0x15, 0x0, 0x0, 0x0, 0x0, 0x8B, 0x41, 0x8, 0x8B, 0x48, 0x0);
  648.         DWORD lpP1 = Geheue.Lees<DWORD>(lpStart + 3);
  649.         BYTE lpP2 = Geheue.Lees<BYTE>(lpStart + 18);
  650.         DwLP = (lpP1 + lpP2) - mcli.ba;
  651.     }
  652.  
  653.  
  654.     std::cout << endl;
  655.     //Entity list offset
  656.     cout << "$ ELO..." << endl;
  657.     DwEL = 0x0;
  658.     while (!DwEL) {
  659.         cout << ".";
  660.         DWORD elStart = Geheue.VindPatroonVeelvuldige(mcli.ba, mcli.si, "x????xx?xxx", 11, 0x5, 0x0, 0x0, 0x0, 0x0, 0xC1, 0xE9, 0x0, 0x39, 0x48, 0x4);
  661.         DWORD elP1 = Geheue.Lees<DWORD>(elStart + 1);
  662.         BYTE elP2 = Geheue.Lees<BYTE>(elStart + 7);
  663.         DwEL = (elP1 + elP2) - mcli.ba;
  664.     }
  665.     std::cout << endl;
  666.  
  667.     //Engine Pointer and Setviewangle
  668.     cout << "$ EP and SVA..." << endl;
  669.     DwEP = 0x0;
  670.     while (!DwEP) {
  671.         cout << ".";
  672.         DWORD epStart = Geheue.VindPatroonVeelvuldige(meng.ba, meng.si, "xxxxxxxx????xxxxxxxxxx????xxxx????xxx", 37, 0xF3, 0x0F, 0x5C, 0xC1, 0xF3, 0x0F, 0x10, 0x15, 0x0, 0x0, 0x0, 0x0, 0x0F, 0x2F, 0xD0, 0x76, 0x04, 0xF3, 0x0F, 0x58, 0xC1, 0xA1, 0x0, 0x0, 0x0, 0x0, 0xF3, 0x0F, 0x11, 0x80, 0x0, 0x0, 0x0, 0x0, 0xD9, 0x46, 0x04);
  673.         DwEP = Geheue.Lees<DWORD>(epStart + 22) - meng.ba;
  674.         DwVA = Geheue.Lees<DWORD>(epStart + 30);
  675.     }
  676.     std::cout << endl;
  677.  
  678.     cout << "$ FPS: Console Peasant." << endl;
  679. }
  680.  
  681.  
  682. void PrintInstructions() {
  683.     cout << "$ How:" << endl << "$ CTRL+F8 to close" << endl << "$ CTRL+1 A" << endl << "$ CTRL+2 T" << endl;
  684. }
  685.  
  686. int main()
  687. {
  688.     system("pause");JUNK;
  689.     cout << endl << endl;JUNK;
  690.     Init(); JUNK;
  691.     CreateThread(0, 0x1000, &AB, 0, 0, 0);JUNK;
  692.     Sleep(1000);JUNK;
  693.     PrintInstructions();
  694.     cout << "$ A: " << aval << " | T: " << tval << endl << endl; JUNK;
  695.     while (true)
  696.     {
  697.         if (GetAsyncKeyState(VK_CONTROL) < 0 && GetAsyncKeyState(VK_F8) < 0)
  698.         {
  699.             while (GetAsyncKeyState(VK_CONTROL) < 0 && GetAsyncKeyState(VK_F8) < 0)
  700.             {
  701.                 Sleep(100);JUNK;
  702.             }
  703.             Doodmaak = true;
  704.             if (Doodmaak)
  705.             {
  706.                 cout << "$ Ending Main thread..." << endl;JUNK;
  707.                 ExitThread(0);JUNK;
  708.             }
  709.         }
  710.  
  711.         if (GetAsyncKeyState(VK_CONTROL) < 0 && GetAsyncKeyState(0x31) < 0)
  712.         {
  713.             while (GetAsyncKeyState(VK_CONTROL) < 0 && GetAsyncKeyState(0x31) < 0)
  714.             {
  715.                 Sleep(100);JUNK;
  716.             }
  717.             if (Doel)
  718.             {
  719.                 Doel = false;JUNK;
  720.                 PlaySound("C:\\Windows\\Media\\Speech Off.wav", NULL, SND_FILENAME);JUNK;
  721.             }
  722.             else
  723.             {
  724.                 Doel = true;JUNK;
  725.                 PlaySound("C:\\Windows\\Media\\Speech On.wav", NULL, SND_FILENAME);JUNK;
  726.             }
  727.             if (Doel)
  728.             {
  729.                 aval = "ON";JUNK;
  730.             }
  731.             else
  732.             {
  733.                 aval = "OFF";JUNK;
  734.             }
  735.             cout << "$ A: " << aval << " | T: " << tval << endl;JUNK;
  736.         }
  737.         if (GetAsyncKeyState(VK_CONTROL) < 0 && GetAsyncKeyState(0x32) < 0)
  738.         {
  739.             while (GetAsyncKeyState(VK_CONTROL) < 0 && GetAsyncKeyState(0x32) < 0)
  740.             {
  741.                 Sleep(100);JUNK;
  742.             }
  743.             if (Sneller)
  744.             {
  745.                 Sneller = false;JUNK;
  746.                 PlaySound("C:\\Windows\\Media\\Speech Off.wav", NULL, SND_FILENAME);JUNK;
  747.             }
  748.             else
  749.             {
  750.                 Sneller = true;JUNK;
  751.                 PlaySound("C:\\Windows\\Media\\Speech On.wav", NULL, SND_FILENAME);JUNK;
  752.             }
  753.             if (Sneller)
  754.             {
  755.                 tval = "ON";JUNK;
  756.             }
  757.             else
  758.             {
  759.                 tval = "OFF";JUNK;
  760.             }
  761.             cout << "$ A: " << aval << " | T: " << tval << endl;JUNK;
  762.         }
  763.         Sleep(25);JUNK;
  764.     }
  765.     return 0;JUNK;
  766. }
  767.  
  768. "STDAFX.H"
  769.  
  770. #include <windows.h>
  771. #include <TlHelp32.h>
  772. #include <cstdio>
  773. #include <windows.h>
  774. #include <conio.h>
  775. #include "mmsystem.h"
  776. #include <FCNTL.H>
  777. #include <io.h>
  778. #include <iostream>
  779. #include <string>
  780. #include <sstream>
  781. #include <random>
  782. #include <stdint.h>
  783. #include "Decrypt.h"
  784. #include <stdio.h>
  785. #include <string.h>
  786. #include <MMSystem.h>
  787. using namespace std;
  788.  
  789. "command.txt"
  790. /EHsc /Od /MT *.cpp kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib winmm.lib odbccp32.lib /link /FORCE:MULTIPLE /OUT:FPSOUTPUT.exe
  791.  
  792. "inout.txt"
  793. FPSOUTPUT.exe
  794. mcshield.exe
  795.  
  796. "msg.txt"
  797. good game mate
Advertisement
Add Comment
Please, Sign In to add comment