more stuff
This commit is contained in:
parent
5ddb727d6d
commit
c7119b6796
|
|
@ -6,7 +6,7 @@
|
|||
#include <discord_register.h>
|
||||
#include <rapidjson/document.h>
|
||||
|
||||
#include "Configuration.hpp"
|
||||
#include "Globals.hpp"
|
||||
|
||||
#include "Hooks/CRoblox.hpp"
|
||||
|
||||
|
|
|
|||
|
|
@ -16,19 +16,16 @@
|
|||
#define RBX__MESSAGE_WARNING 2
|
||||
#define RBX__MESSAGE_ERROR 3
|
||||
|
||||
// TODO: Verify this
|
||||
#define CLASSPADDING_DATAMODEL__JOBID 739
|
||||
|
||||
#define ADDRESS_HTTP__HTTPGETPOSTWININET 0x0
|
||||
#define ADDRESS_HTTP__HTTPGETPOSTWININET 0x006F03B0
|
||||
#define ADDRESS_HTTP__HTTPGETPOSTWINHTTP 0x006EEE70
|
||||
#define ADDRESS_HTTP__TRUSTCHECK 0x005B7050
|
||||
#define ADDRESS_CRYPT__VERIFYSIGNATUREBASE64 0x00809EC0
|
||||
#define ADDRESS_CONTEXT__REQUIREPERMISSION 0x0
|
||||
#define ADDRESS_CONTEXT__ISINROLE 0x0
|
||||
#define ADDRESS_DATAMODEL__GETJOBID 0x005E70C0
|
||||
#define ADDRESS_STANDARDOUT__PRINT 0x005B25E0
|
||||
#define ADDRESS_SERVERREPLICATOR__SENDTOP 0x00513E80
|
||||
#define ADDRESS_SERVERREPLICATOR__PROCESSTICKET 0x00514B60
|
||||
#define ADDRESS_SERVERREPLICATOR__PROCESSPACKET 0x00514B60
|
||||
|
||||
#define CLASSLOCATION_CROBLOXAPP 0x00CBA8A0
|
||||
#define CLASSLOCATION_CAPP 0x00406D80
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "Configuration.hpp"
|
||||
#include "Globals.hpp"
|
||||
|
||||
class Helpers
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "Configuration.hpp"
|
||||
#include "Globals.hpp"
|
||||
#include "Helpers.hpp"
|
||||
#include "Discord.hpp"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
#ifdef _DEBUG
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Configuration.hpp"
|
||||
|
||||
const auto Context__isInRole = (bool(__cdecl*)(int identity, int permission))ADDRESS_CONTEXT__ISINROLE;
|
||||
|
||||
typedef void (__thiscall* Context__requirePermission_t)(void* _this, int permission, const char* operation);
|
||||
void __fastcall Context__requirePermission_hook(void* _this, void*, int permission, const char* operation);
|
||||
extern Context__requirePermission_t Context__requirePermission;
|
||||
|
||||
#endif
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include <wincrypt.h>
|
||||
|
||||
#include "Configuration.hpp"
|
||||
#include "Globals.hpp"
|
||||
|
||||
typedef void(__thiscall* Crypt__verifySignatureBase64_t)(HCRYPTPROV* _this, int a2, BYTE* pbData, int a4, int a5, int a6, DWORD dwDataLen, int a8, int a9, int a10, int a11, int a12, int a13, int a14, int a15);
|
||||
void __fastcall Crypt__verifySignatureBase64_hook(HCRYPTPROV* _this, void*, int a2, BYTE* pbData, int a4, int a5, int a6, DWORD dwDataLen, int a8, int a9, int a10, int a11, int a12, int a13, int a14, int a15);
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#include "Hooks/CRoblox.hpp"
|
||||
|
||||
#include "Configuration.hpp"
|
||||
#include "Globals.hpp"
|
||||
#include "Helpers.hpp"
|
||||
|
||||
struct DataModel
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
#include "Hooks/StandardOut.hpp"
|
||||
#endif
|
||||
|
||||
#include "Configuration.hpp"
|
||||
#include "Globals.hpp"
|
||||
#include "Helpers.hpp"
|
||||
|
||||
struct Http
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "Configuration.hpp"
|
||||
#include "Globals.hpp"
|
||||
|
||||
struct Packet
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "Configuration.hpp"
|
||||
#include "Globals.hpp"
|
||||
#include "Helpers.hpp"
|
||||
#include "Patches.hpp"
|
||||
#include "Patcher.hpp"
|
||||
#include "Server.hpp"
|
||||
|
||||
typedef void(__thiscall* StandardOut__print_t)(int _this, int type, std::string* message);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "Configuration.hpp"
|
||||
#include "Globals.hpp"
|
||||
#include "Helpers.hpp"
|
||||
|
||||
#include "Hooks/StandardOut.hpp"
|
||||
|
|
|
|||
|
|
@ -1,24 +0,0 @@
|
|||
#ifdef _DEBUG
|
||||
|
||||
#include "Hooks/Context.hpp"
|
||||
|
||||
Context__requirePermission_t Context__requirePermission = (Context__requirePermission_t)ADDRESS_CONTEXT__REQUIREPERMISSION;
|
||||
|
||||
void __fastcall Context__requirePermission_hook(void* _this, void*, int permission, const char* operation)
|
||||
{
|
||||
int identity = ((int*)_this)[0];
|
||||
|
||||
if (!Context__isInRole(identity, permission))
|
||||
{
|
||||
if (operation != 0)
|
||||
{
|
||||
throw std::runtime_error("The current identity (" + std::to_string(identity) + ") cannot " + std::string(operation) + " (requires " + std::to_string(permission) + ")");
|
||||
}
|
||||
else
|
||||
{
|
||||
throw std::runtime_error("The current identity (" + std::to_string(identity) + ") cannot perform the requested operation (requires " + std::to_string(permission) + ")");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
#include "Hooks/Crypt.hpp"
|
||||
|
||||
#include "Helpers.hpp"
|
||||
#include "Patches.hpp"
|
||||
#include "Patcher.hpp"
|
||||
|
||||
Crypt::Crypt()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
#include "Configuration.hpp"
|
||||
#include "Patches.hpp"
|
||||
#include "Globals.hpp"
|
||||
#include "Patcher.hpp"
|
||||
|
||||
#ifdef PLAYER
|
||||
#include "Discord.hpp"
|
||||
|
|
@ -14,10 +14,6 @@
|
|||
#include "Hooks/Crypt.hpp"
|
||||
#include "Hooks/CRoblox.hpp"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#include "Hooks/Context.hpp"
|
||||
#endif
|
||||
|
||||
#ifdef SERVER
|
||||
#include "Hooks/DataModel.hpp"
|
||||
#include "Hooks/StandardOut.hpp"
|
||||
|
|
@ -34,10 +30,6 @@ ADD_PATCH(Crypt__verifySignatureBase64, Crypt__verifySignatureBase64_hook)
|
|||
ADD_PATCH(CRobloxApp__InitInstance, CRobloxApp__InitInstance_hook)
|
||||
ADD_PATCH(CRobloxCommandLineInfo__ParseParam, CRobloxCommandLineInfo__ParseParam_hook)
|
||||
|
||||
#ifdef _DEBUG
|
||||
ADD_PATCH(Context__requirePermission, Context__requirePermission_hook)
|
||||
#endif
|
||||
|
||||
#ifdef SERVER
|
||||
ADD_PATCH(DataModel__getJobId, DataModel__getJobId_hook)
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@
|
|||
"curl",
|
||||
"detours",
|
||||
"discord-rpc",
|
||||
"rapidjson",
|
||||
"pugixml"
|
||||
"openssl",
|
||||
"pugixml",
|
||||
"rapidjson"
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue