quick clean up + add libtommath exports

This commit is contained in:
project-bo4 2023-03-07 04:31:21 -08:00
parent 8b606eae94
commit 1686efcccd
10 changed files with 34 additions and 26 deletions

View File

@ -1,8 +1,7 @@
#include <std_include.hpp>
#include "loader/component_loader.hpp"
#include <utils/hook.hpp>
#include <component/logger.hpp>
#include "definitions\discovery.hpp"
namespace demonware
{

View File

@ -7,11 +7,8 @@
#include <utils/string.hpp>
#include <utils/thread.hpp>
#include <utils/compression.hpp>
#include <exception/minidump.hpp>
#define VERSION "1.0.0"
namespace exception
{
namespace

View File

@ -9,11 +9,6 @@ namespace integrity
{
namespace
{
#ifndef AVOID_UNNECESSARY_CHANGES
/* PLACE_HOLDER */
#endif // AVOID_UNNECESSARY_CHANGES
const std::vector<std::pair<uint8_t*, size_t>>& get_text_sections()
{
static const std::vector<std::pair<uint8_t*, size_t>> text = []
@ -315,14 +310,12 @@ namespace integrity
public:
void pre_start() override
{
#ifndef AVOID_UNNECESSARY_CHANGES
disable_tls_callbacks();
create_thread_hook.create(CreateThread, create_thread_stub);
auto* get_thread_context_func = utils::nt::library("kernelbase.dll").get_proc<void*>("GetThreadContext");
get_thread_context_hook.create(get_thread_context_func, get_thread_context_stub);
#endif // AVOID_UNNECESSARY_CHANGES
/*************************************************************************************************************
** TODO : There is some kind of dormant defence mechanism. works so random makes it harder to investigate

View File

@ -1,10 +1,7 @@
#include <std_include.hpp>
#include "loader/component_loader.hpp"
#include "utils/hook.hpp"
#include "component/logger.hpp"
#include "WinReg.hpp"
//#include "definitions/t8_engine.hpp"
#include "definitions\discovery.hpp"
namespace platform
{
@ -60,6 +57,11 @@ namespace platform
//PC_TextChat_Print_Hook.create(0x000000000_g, PC_TextChat_Print_Stub); // Disable useless system messages passed into chat box
//BattleNet_API_RequestAppTicket_Hook.create(0x000000000_g, BattleNet_API_RequestAppTicket_stub); // Implement custom encryption token
}
int priority() override
{
return 9996;
}
};
}

View File

@ -222,6 +222,4 @@ namespace splash
}
}
#ifndef AVOID_UNNECESSARY_CHANGES
REGISTER_COMPONENT(splash::component)
#endif // AVOID_UNNECESSARY_CHANGES
REGISTER_COMPONENT(splash::component)

View File

@ -3,7 +3,6 @@
#include "loader/component_loader.hpp"
#include <utils/hook.hpp>
#include <utils/signature.hpp>
#include <component/logger.hpp>
std::unordered_map<std::string, size_t> symbols_list;

View File

@ -1,8 +1,6 @@
#include <std_include.hpp>
#include "definitions\t8_engine.hpp"
#include "loader/component_loader.hpp"
#include <component/logger.hpp>
#include <utils/string.hpp>
namespace game
{

View File

@ -6,8 +6,6 @@
#include <utils/hook.hpp>
#include <utils/string.hpp>
#include <utils/finally.hpp>
#include "component/logger.hpp"
namespace
{

View File

@ -1,6 +1,30 @@
#include <std_include.hpp>
#include <utils/nt.hpp>
extern "C"
{
int s_read_arc4random(void*, size_t)
{
return -1;
}
int s_read_getrandom(void*, size_t)
{
return -1;
}
int s_read_urandom(void*, size_t)
{
return -1;
}
int s_read_ltm_rng(void*, size_t)
{
return -1;
}
}
size_t get_base()
{
static auto base = size_t(utils::nt::library{}.get_ptr());
@ -8,7 +32,6 @@ size_t get_base()
return base;
}
size_t operator"" _b(const size_t val)
{
return get_base() + val;
@ -24,7 +47,6 @@ size_t reverse_b(const void* val)
return reverse_b(reinterpret_cast<size_t>(val));
}
size_t operator"" _g(const size_t val)
{
static auto base = get_base();

View File

@ -93,14 +93,16 @@
#pragma comment(lib, "iphlpapi.lib")
#pragma comment(lib, "Crypt32.lib")
#include <component/logger.hpp>
using namespace std::literals;
size_t get_base();
size_t operator"" _b(size_t val);
size_t reverse_b(size_t val);
size_t reverse_b(const void* val);
size_t operator"" _g(size_t val);
size_t reverse_g(size_t val);
size_t reverse_g(const void* val);