Skip to content

Commit 57b722f

Browse files
authored
Add files via upload
1 parent 5ead483 commit 57b722f

7 files changed

+277
-0
lines changed

CustomWinApi.hpp

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#pragma once
2+
#include <Windows.h>
3+
#include <stdio.h>
4+
#include <cstdint>
5+
#include <functional>
6+
7+
#include <iostream>
8+
#include <thread>
9+
#include <fstream>
10+
#include <vector>
11+
#include <TlHelp32.h>
12+
#include <stdlib.h>
13+
#include <string>
14+
#include <xmmintrin.h>
15+
16+
namespace CustomAPII
17+
{
18+
inline uint64_t ScanSignature(uint64_t pModuleBaseAddress, const char* szSignature, size_t nSelectResultIndex = NULL) {
19+
auto PatternToBytes = [](const char* szpattern) {
20+
auto m_iBytes = std::vector<int>{};
21+
const auto szStartAddr = const_cast<char*>(szpattern);
22+
const auto szEndAddr = const_cast<char*>(szpattern) + strlen(szpattern);
23+
24+
for (auto szCurrentAddr = szStartAddr; szCurrentAddr < szEndAddr; ++szCurrentAddr) {
25+
if (*szCurrentAddr == '?') {
26+
++szCurrentAddr;
27+
if (*szCurrentAddr == '?') ++szCurrentAddr;
28+
m_iBytes.push_back(-1);
29+
}
30+
else m_iBytes.push_back(strtoul(szCurrentAddr, &szCurrentAddr, 16));
31+
}
32+
return m_iBytes;
33+
};
34+
35+
const auto pDosHeader = (PIMAGE_DOS_HEADER)pModuleBaseAddress;
36+
const auto pNTHeaders = (PIMAGE_NT_HEADERS)((std::uint8_t*)pModuleBaseAddress + pDosHeader->e_lfanew);
37+
const auto dwSizeOfImage = pNTHeaders->OptionalHeader.SizeOfImage;
38+
auto m_iPatternBytes = PatternToBytes(szSignature);
39+
const auto pScanBytes = reinterpret_cast<std::uint8_t*>(pModuleBaseAddress);
40+
const auto m_iPatternBytesSize = m_iPatternBytes.size();
41+
const auto m_iPatternBytesData = m_iPatternBytes.data();
42+
size_t nFoundResults = 0;
43+
44+
for (auto i = 0ul; i < dwSizeOfImage - m_iPatternBytesSize; ++i) {
45+
bool bFound = true;
46+
47+
for (auto j = 0ul; j < m_iPatternBytesSize; ++j) {
48+
if (pScanBytes[i + j] != m_iPatternBytesData[j] && m_iPatternBytesData[j] != -1) {
49+
bFound = false;
50+
break;
51+
}
52+
}
53+
54+
if (bFound) {
55+
if (nSelectResultIndex != 0) {
56+
if (nFoundResults < nSelectResultIndex) {
57+
nFoundResults++;
58+
bFound = false;
59+
}
60+
else return reinterpret_cast<uint64_t>(&pScanBytes[i]);
61+
}
62+
else return reinterpret_cast<uint64_t>(&pScanBytes[i]);
63+
}
64+
}
65+
return NULL;
66+
}
67+
}
68+

D3DX9_43.dll

2.29 MB
Binary file not shown.

Predictor.exe

235 KB
Binary file not shown.

VMProtectSDK64.lib

7.2 KB
Binary file not shown.

auth.hpp

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#pragma once
2+
#include <string>
3+
#include <vector>
4+
#include "curl/curl.h"
5+
#include "EncryptString.hpp"
6+
#include "EncryptFuncs.hpp"
7+
8+
extern bool IsValid;
9+
static std::string APIKEY = E("6MAYS3DR4EXL"); // ENTER USER ID
10+
static std::string userid = E("494"); // ENTER USER ID
11+
static std::string ProgramID = E("64ckEX7TQg9N"); // ENTER PROGRAM ID
12+
static std::string ProgramName = E("Sucka"); // ENTER PROGRAM Name
13+
static std::string ProgramEncryption = E("JV65A3LM630TPCQ4EURSIBD15GHIRW9U"); // ENTER PROGRAM Encryption Key
14+
static std::string Response1 = E("VL1C5J1Q");
15+
static std::string ResponseInvalid = E("Q8MY5FHD");
16+
static std::string ResponseExpired = E("UE5JDBR7");
17+
static std::string ResponseHash = E("F3I0P7CM");
18+
static std::string Response2 = E("FTEQ837M");
19+
static std::string ResponseBanned = E("YYHTEU79");
20+
21+
class program
22+
{
23+
public:
24+
static std::tuple<std::string, std::string, std::string> login(std::string key, std::string userid, std::string pid, std::string programname, std::string skey);
25+
static std::vector<uint8_t> Stream(std::string key, std::string link);
26+
};
27+
static char PassWord[50] = "";
28+
29+
30+
static size_t write_callback(void* contents, size_t size, size_t nmemb, void* userp)
31+
{
32+
((std::string*)userp)->append((char*)contents, size * nmemb);
33+
return size * nmemb;
34+
}
35+
36+
static void BAN_USER(std::string KEY, std::string REASON)
37+
{
38+
CURL* curl = curl_easy_init();
39+
40+
std::string data;
41+
42+
std::string to_return;
43+
44+
std::string link = E("https://panel.proxine.ninja/api/apiaccess.php?api=") + APIKEY + E("&action=ban&program=") + ProgramName + E("&key=") + KEY + E("&reason=") + REASON;
45+
46+
curl_easy_setopt(curl, CURLOPT_URL, link.c_str());
47+
48+
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
49+
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
50+
51+
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data.c_str());
52+
53+
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
54+
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &to_return);
55+
56+
auto code = curl_easy_perform(curl);
57+
58+
59+
curl_easy_cleanup(curl);
60+
}

d3d_Hook.cpp

+139
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
#include "d3d_Hook.hpp"
2+
3+
#include <MinHook.h>
4+
5+
bool Hook::Init()
6+
{
7+
const std::string Title = E("SKYPE TERMINAL CALLING");
8+
9+
WNDCLASSEX Window;
10+
11+
Window.cbSize = sizeof(WNDCLASSEX);
12+
Window.style = CS_HREDRAW | CS_VREDRAW;
13+
14+
Window.lpfnWndProc = DefWindowProcA;
15+
Window.cbClsExtra = NULL;
16+
Window.cbWndExtra = NULL;
17+
Window.hInstance = SAFE_CALL(GetModuleHandleA)(nullptr);
18+
Window.hIcon = NULL;
19+
Window.hCursor = NULL;
20+
Window.hbrBackground = NULL;
21+
Window.lpszMenuName = NULL;
22+
Window.lpszClassName = Title.c_str();
23+
Window.hIconSm = NULL;
24+
25+
SAFE_CALL(RegisterClassExA)(&Window);
26+
27+
HWND WindowA = CreateWindowA(Window.lpszClassName, Title.c_str(), WS_OVERLAPPEDWINDOW, 0, 0, 100, 100, 0, 0, Window.hInstance, 0);
28+
29+
HMODULE D3D11_DLL;
30+
if ((D3D11_DLL = SAFE_CALL(GetModuleHandleA)(E("d3d11.dll"))) == NULL)
31+
{
32+
SAFE_CALL(DestroyWindow)(WindowA);
33+
SAFE_CALL(UnregisterClassA)(Window.lpszClassName, Window.hInstance);
34+
35+
return false;
36+
}
37+
38+
void* D3D11CreateDeviceAndSwapChain;
39+
40+
if ((D3D11CreateDeviceAndSwapChain = SAFE_CALL(GetProcAddress)(D3D11_DLL, E("D3D11CreateDeviceAndSwapChain"))) == NULL)
41+
{
42+
SAFE_CALL(DestroyWindow)(WindowA);
43+
SAFE_CALL(UnregisterClassA)(Window.lpszClassName, Window.hInstance);
44+
45+
return false;
46+
}
47+
48+
D3D_FEATURE_LEVEL featureLevel;
49+
const D3D_FEATURE_LEVEL featureLevels[] = { D3D_FEATURE_LEVEL_10_1, D3D_FEATURE_LEVEL_11_0 };
50+
DXGI_RATIONAL refreshRate;
51+
refreshRate.Numerator = 60;
52+
refreshRate.Denominator = 1;
53+
54+
DXGI_MODE_DESC bufferDesc;
55+
bufferDesc.Width = 100;
56+
bufferDesc.Height = 100;
57+
bufferDesc.RefreshRate = refreshRate;
58+
bufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
59+
bufferDesc.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED;
60+
bufferDesc.Scaling = DXGI_MODE_SCALING_UNSPECIFIED;
61+
62+
DXGI_SAMPLE_DESC sampleDesc;
63+
sampleDesc.Count = 1;
64+
sampleDesc.Quality = 0;
65+
66+
DXGI_SWAP_CHAIN_DESC swapChainDesc;
67+
swapChainDesc.BufferDesc = bufferDesc;
68+
swapChainDesc.SampleDesc = sampleDesc;
69+
swapChainDesc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
70+
swapChainDesc.BufferCount = 1;
71+
swapChainDesc.OutputWindow = WindowA;
72+
swapChainDesc.Windowed = 1;
73+
swapChainDesc.SwapEffect = DXGI_SWAP_EFFECT_DISCARD;
74+
swapChainDesc.Flags = DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH;
75+
76+
IDXGISwapChain* swapChain;
77+
ID3D11Device* device;
78+
ID3D11DeviceContext* context;
79+
80+
if (((long(__stdcall*)(
81+
IDXGIAdapter*,
82+
D3D_DRIVER_TYPE,
83+
HMODULE,
84+
UINT,
85+
const D3D_FEATURE_LEVEL*,
86+
UINT,
87+
UINT,
88+
const DXGI_SWAP_CHAIN_DESC*,
89+
IDXGISwapChain**,
90+
ID3D11Device**,
91+
D3D_FEATURE_LEVEL*,
92+
ID3D11DeviceContext**))(D3D11CreateDeviceAndSwapChain))(0, D3D_DRIVER_TYPE_HARDWARE, 0, 0, featureLevels, 2, D3D11_SDK_VERSION, &swapChainDesc, &swapChain, &device, &featureLevel, &context) < 0)
93+
{
94+
SAFE_CALL(DestroyWindow)(WindowA);
95+
SAFE_CALL(UnregisterClassA)(Window.lpszClassName, Window.hInstance);
96+
97+
return false;
98+
}
99+
100+
g_methodsTable = (uint64_t*)calloc(205, sizeof(uint64_t));
101+
102+
memcpy(g_methodsTable, *(uint64_t**)swapChain, 18 * sizeof(uint64_t));
103+
memcpy(g_methodsTable + 18, *(uint64_t**)device, 43 * sizeof(uint64_t));
104+
memcpy(g_methodsTable + 18 + 43, *(uint64_t**)context, 144 * sizeof(uint64_t));
105+
106+
MH_Initialize();
107+
108+
swapChain->Release();
109+
swapChain = 0;
110+
111+
device->Release();
112+
device = 0;
113+
114+
context->Release();
115+
context = 0;
116+
117+
SAFE_CALL(DestroyWindow)(WindowA);
118+
SAFE_CALL(UnregisterClassA)(Window.lpszClassName, Window.hInstance);
119+
120+
return true;
121+
}
122+
123+
bool Hook::Present(void** hk_originalFunction, void* hk_hookedPresent)
124+
{
125+
if (!hk_originalFunction || !hk_hookedPresent)
126+
return false;
127+
128+
void* target = (void*)g_methodsTable[8];
129+
130+
if (!target)
131+
return false;
132+
133+
if (MH_CreateHook(target, hk_hookedPresent, hk_originalFunction) != MH_OK || MH_EnableHook(target) != MH_OK)
134+
{
135+
return false;
136+
}
137+
138+
return true;
139+
}

imgui.ini

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Window][Debug##Default]
2+
Pos=60,60
3+
Size=400,400
4+
Collapsed=0
5+
6+
[Window][Hello, world!]
7+
Pos=0,0
8+
Size=448,332
9+
Collapsed=0
10+

0 commit comments

Comments
 (0)