• Birlikte RealityCheatsi yönetebilecek ekip arkadaşları arıyoruz — fikirlerin, tecrübelerin,merakın ve enerjinle katkıda bulunmak istersen seni bekliyoruz!

C++ Pubg Mobile EspWork Source

ravex

Ultra Member
Katılım
30 Tem 2019
Konular
217
Mesajlar
656
Tepkime puanı
396
Konum
Turkey
RC Point
0
C++:
#include<iostream>
#include<windows.h>
#include <tchar.h>
#include <TlHelp32.h>
#include <tchar.h>
#include <Psapi.h>
#include<stdio.h>
#include <math.h>
#include "ESPWork.h"
using namespace std;


#define DARKORANGE  D3DCOLOR_ARGB(255,255,127,000)
#define TextWhite   D3DCOLOR_ARGB(255,255,255,255)
#define TextRed     D3DCOLOR_ARGB(255,255,0,0)
#define TextGreen   D3DCOLOR_ARGB(255,0,255,0)
#define TextBlue    D3DCOLOR_ARGB(255,0,0,255)
#define TextBlack   D3DCOLOR_ARGB(255,0,0,0)
#define TextPurple  D3DCOLOR_ARGB(255,125,0,255)
#define TextGrey    D3DCOLOR_ARGB(255,128,128,128)
#define TextYellow  D3DCOLOR_ARGB(255,255,255,0)
#define TextOrange  D3DCOLOR_ARGB(255,255,140,0)
#define TextCyan    D3DCOLOR_ARGB(255,0,139,200)
#define TextPink    D3DCOLOR_ARGB(255,255,192,203)



BYTE ViewPatt[] = { 0x00, 0x00, 0x80, 0x3F ,0x00 ,0x00 ,0x80 ,0x3F ,0x00 ,0x00 ,0x80 ,0x3F ,0x00 ,0x00 ,0x80 ,0x3F ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x80 ,0x3F ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x80 ,0x3F ,0x00 ,0x00 ,0x80 ,0x3F };
BYTE Players_Pattren[] = { '?', '?', '?', '?', 0x00, 0x00, 0x80, 0x3F, 0x00, 0x00, 0x80, 0x3F, 0x00, 0x00, 0x80, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, '?', 0x00, 0x00, 0x00, '?','?', '?', '?', '?', '?', '?', '?', '?', 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x3F, 0x00, 0x00, 0x80, 0x3F, 0x00, 0x00, 0x80, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, '?', '?', '?', '?', '?', '?', '?', '?', 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xA6, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
BYTE Players_Pattren2[] = { 0x78, 0x72, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x14, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

std::vector<DWORD_PTR> ViewMatrix;
std::vector<DWORD_PTR> Players;

HWND game_hWnd;

DWORD Vaddr = 0;
DWORD Paddr[30];

int c;
int PlayerNum = 0;

DirectXM *pDxm = NULL;

HANDLE hPro;

DWORD64 d;

void handle(HANDLE h)
{
    hPro = h;
}

int GetpNum()
{
    return PlayerNum;
}

bool check(DWORD vAddr)
{
    D3DMATRIX GameViewMatrix = pMM->RPM<D3DMATRIX>(vAddr + 0xD0, sizeof(D3DMATRIX));
    if (GameViewMatrix._41 != 0)
    {
        Vaddr = vAddr;
        return 1;
    }
    return 0;
}


bool cheak_ViewMatrix()
{
    pMM->MemSearch(ViewPatt, sizeof(ViewPatt), 0x00000000, 0xffffffff, FALSE, 1, ViewMatrix);
    std::vector<DWORD_PTR>::iterator i;

    for (i = ViewMatrix.begin(); i != ViewMatrix.end(); i++)
    {
        if (check(ViewMatrix[c]))
        {
            cout << "View Matrix Found at : " <<"0x"<< hex << ViewMatrix[c] << endl;
            CloseHandle(CreateThread(0, 0, TIMER, 0, 0, 0));
            return 1;
        }
        c++;
    }
    c = 0;
    return 0;
}


DWORD WINAPI TIMER(LPVOID p)
{
   
    while (true)
    {
       
        pMM->MemSearch(Players_Pattren2, sizeof(Players_Pattren2), 0x00000000, 0xffffffff, FALSE, 1, Players);
        PlayerNum = Players.size();
        cout << "Scan" << endl;
        for (int i = 0; i < 30; i++)
            Paddr[i] = 0;
       
        for (int i = 0; i < PlayerNum; i++)
            Paddr[i] = Players[i];
        Players.clear();      
    }
    return 1;
}


BOOL WorldToScreen(D3DXVECTOR3 _Enemy_Point, D3DXVECTOR3 &_Screen_Point, int &Distance)
{
    _Screen_Point = D3DXVECTOR3(0, 0, 0);
    float ScreenW = 0;
    D3DMATRIX GameViewMatrix = pMM->RPM<D3DMATRIX>(Vaddr + 0xD0, sizeof(D3DMATRIX));
   
    ScreenW = (GameViewMatrix._14 * _Enemy_Point.x) + (GameViewMatrix._24* _Enemy_Point.y) + (GameViewMatrix._34 * _Enemy_Point.z + GameViewMatrix._44);
    Distance = ScreenW / 100;
    if (ScreenW < 0.0001f)
    {
        return FALSE;
    }


    float ScreenY = (GameViewMatrix._12 * _Enemy_Point.x) + (GameViewMatrix._22 * _Enemy_Point.y) + (GameViewMatrix._32 * (_Enemy_Point.z + 85) + GameViewMatrix._42);
    float ScreenX = (GameViewMatrix._11 * _Enemy_Point.x) + (GameViewMatrix._21 * _Enemy_Point.y) + (GameViewMatrix._31 * _Enemy_Point.z + GameViewMatrix._41);

    _Screen_Point.y = (pDxm->s_height / 2) - (pDxm->s_height / 2) * ScreenY / ScreenW;
    _Screen_Point.x = (pDxm->s_width / 2) + (pDxm->s_width / 2) * ScreenX / ScreenW;
    float y1 = (pDxm->s_height / 2) - (GameViewMatrix._12*_Enemy_Point.x + GameViewMatrix._22 * _Enemy_Point.y + GameViewMatrix._32 *(_Enemy_Point.z - 95) + GameViewMatrix._42) *(pDxm->s_height / 2) / ScreenW;
    _Screen_Point.z = y1 - _Screen_Point.y;
    return TRUE;
}


void print()
{

    if(PlayerNum > 0)
    for (int i = 0; i != PlayerNum; i++)
    {
       
        ReadProcessMemory(hPro, (LPCVOID)(Paddr[i] - 0x80 + 0x180), &d, sizeof(d), NULL);

        if (d == 10377419441368465408)
        {
            d = 0;
            D3DXVECTOR3 EnPos = pMM->RPM<D3DXVECTOR3>(Paddr[i] - 0x80 - 0x8, sizeof(D3DXVECTOR3));
            D3DXVECTOR3 vret;
            int EnDistance = 0;

            if (WorldToScreen(EnPos, vret, EnDistance) && EnPos != NULL && EnDistance < 300)

            {
                float x = vret.x;
                float y = vret.y;
                float h = vret.z;
                float w = vret.z / 2;
                pDxm->DrawBox((x - vret.z / 4)-3, y-5, w+3, h+5, TextGreen);
                pDxm->DrawString(x , y, TextBlue, pDxm->pFont, "[%dm]", EnDistance - 1);
            }
        }
       

    }

}
Beyler Bayanlar Diğer Sourceler İçin Like Ve Yorum Atın​
 

RekkaM

Banned Member
Katılım
26 Ağu 2019
Konular
5
Mesajlar
192
Tepkime puanı
43
RC Point
0
Hmmm, Deniyeceğim. (y)
 
Katılım
7 Nis 2020
Mesajlar
2
Tepkime puanı
0
RC Point
0
Farmhouse bedroom
Decided update your? Check out the news of goods for home use from our collection, in which are as goods with bright floral patterns and and goods with chic texture and finish metallic. Armchair for the garden is rightfully integral attribute of each dwellings. In the presented store online you can purchase best furniture for apartments. Famous international company will deliver in WEST LOS ANGELES customer all furniture at desired time day.Retail prices, which offers online shop furniture items WEST HOLLYWOOD (WEST HOLLYWOOD) nice each visitor.Again relatively low price causes few questions regarding high quality furniture. The catalog which filled with diverse items pieces of furniture composes only high quality factory products.
 
Üst