quick clean up + add libtommath exports
This commit is contained in:
parent
8b606eae94
commit
1686efcccd
@ -1,8 +1,7 @@
|
|||||||
#include <std_include.hpp>
|
#include <std_include.hpp>
|
||||||
#include "loader/component_loader.hpp"
|
#include "loader/component_loader.hpp"
|
||||||
#include <utils/hook.hpp>
|
#include <utils/hook.hpp>
|
||||||
#include <component/logger.hpp>
|
|
||||||
#include "definitions\discovery.hpp"
|
|
||||||
|
|
||||||
namespace demonware
|
namespace demonware
|
||||||
{
|
{
|
||||||
|
@ -7,11 +7,8 @@
|
|||||||
#include <utils/string.hpp>
|
#include <utils/string.hpp>
|
||||||
#include <utils/thread.hpp>
|
#include <utils/thread.hpp>
|
||||||
#include <utils/compression.hpp>
|
#include <utils/compression.hpp>
|
||||||
|
|
||||||
#include <exception/minidump.hpp>
|
#include <exception/minidump.hpp>
|
||||||
|
|
||||||
#define VERSION "1.0.0"
|
|
||||||
|
|
||||||
namespace exception
|
namespace exception
|
||||||
{
|
{
|
||||||
namespace
|
namespace
|
||||||
|
@ -9,11 +9,6 @@ namespace integrity
|
|||||||
{
|
{
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
#ifndef AVOID_UNNECESSARY_CHANGES
|
|
||||||
|
|
||||||
/* PLACE_HOLDER */
|
|
||||||
|
|
||||||
#endif // AVOID_UNNECESSARY_CHANGES
|
|
||||||
const std::vector<std::pair<uint8_t*, size_t>>& get_text_sections()
|
const std::vector<std::pair<uint8_t*, size_t>>& get_text_sections()
|
||||||
{
|
{
|
||||||
static const std::vector<std::pair<uint8_t*, size_t>> text = []
|
static const std::vector<std::pair<uint8_t*, size_t>> text = []
|
||||||
@ -315,14 +310,12 @@ namespace integrity
|
|||||||
public:
|
public:
|
||||||
void pre_start() override
|
void pre_start() override
|
||||||
{
|
{
|
||||||
#ifndef AVOID_UNNECESSARY_CHANGES
|
|
||||||
disable_tls_callbacks();
|
disable_tls_callbacks();
|
||||||
|
|
||||||
create_thread_hook.create(CreateThread, create_thread_stub);
|
create_thread_hook.create(CreateThread, create_thread_stub);
|
||||||
auto* get_thread_context_func = utils::nt::library("kernelbase.dll").get_proc<void*>("GetThreadContext");
|
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);
|
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
|
** TODO : There is some kind of dormant defence mechanism. works so random makes it harder to investigate
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
#include <std_include.hpp>
|
#include <std_include.hpp>
|
||||||
#include "loader/component_loader.hpp"
|
#include "loader/component_loader.hpp"
|
||||||
#include "utils/hook.hpp"
|
#include "utils/hook.hpp"
|
||||||
#include "component/logger.hpp"
|
|
||||||
#include "WinReg.hpp"
|
#include "WinReg.hpp"
|
||||||
//#include "definitions/t8_engine.hpp"
|
|
||||||
#include "definitions\discovery.hpp"
|
|
||||||
|
|
||||||
namespace platform
|
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
|
//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
|
//BattleNet_API_RequestAppTicket_Hook.create(0x000000000_g, BattleNet_API_RequestAppTicket_stub); // Implement custom encryption token
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int priority() override
|
||||||
|
{
|
||||||
|
return 9996;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -222,6 +222,4 @@ namespace splash
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef AVOID_UNNECESSARY_CHANGES
|
REGISTER_COMPONENT(splash::component)
|
||||||
REGISTER_COMPONENT(splash::component)
|
|
||||||
#endif // AVOID_UNNECESSARY_CHANGES
|
|
@ -3,7 +3,6 @@
|
|||||||
#include "loader/component_loader.hpp"
|
#include "loader/component_loader.hpp"
|
||||||
#include <utils/hook.hpp>
|
#include <utils/hook.hpp>
|
||||||
#include <utils/signature.hpp>
|
#include <utils/signature.hpp>
|
||||||
#include <component/logger.hpp>
|
|
||||||
|
|
||||||
std::unordered_map<std::string, size_t> symbols_list;
|
std::unordered_map<std::string, size_t> symbols_list;
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
#include <std_include.hpp>
|
#include <std_include.hpp>
|
||||||
#include "definitions\t8_engine.hpp"
|
#include "definitions\t8_engine.hpp"
|
||||||
#include "loader/component_loader.hpp"
|
#include "loader/component_loader.hpp"
|
||||||
#include <component/logger.hpp>
|
|
||||||
#include <utils/string.hpp>
|
|
||||||
|
|
||||||
namespace game
|
namespace game
|
||||||
{
|
{
|
||||||
|
@ -6,8 +6,6 @@
|
|||||||
#include <utils/hook.hpp>
|
#include <utils/hook.hpp>
|
||||||
#include <utils/string.hpp>
|
#include <utils/string.hpp>
|
||||||
#include <utils/finally.hpp>
|
#include <utils/finally.hpp>
|
||||||
#include "component/logger.hpp"
|
|
||||||
|
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,30 @@
|
|||||||
#include <std_include.hpp>
|
#include <std_include.hpp>
|
||||||
#include <utils/nt.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()
|
size_t get_base()
|
||||||
{
|
{
|
||||||
static auto base = size_t(utils::nt::library{}.get_ptr());
|
static auto base = size_t(utils::nt::library{}.get_ptr());
|
||||||
@ -8,7 +32,6 @@ size_t get_base()
|
|||||||
return base;
|
return base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
size_t operator"" _b(const size_t val)
|
size_t operator"" _b(const size_t val)
|
||||||
{
|
{
|
||||||
return get_base() + val;
|
return get_base() + val;
|
||||||
@ -24,7 +47,6 @@ size_t reverse_b(const void* val)
|
|||||||
return reverse_b(reinterpret_cast<size_t>(val));
|
return reverse_b(reinterpret_cast<size_t>(val));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
size_t operator"" _g(const size_t val)
|
size_t operator"" _g(const size_t val)
|
||||||
{
|
{
|
||||||
static auto base = get_base();
|
static auto base = get_base();
|
||||||
|
@ -93,14 +93,16 @@
|
|||||||
#pragma comment(lib, "iphlpapi.lib")
|
#pragma comment(lib, "iphlpapi.lib")
|
||||||
#pragma comment(lib, "Crypt32.lib")
|
#pragma comment(lib, "Crypt32.lib")
|
||||||
|
|
||||||
|
#include <component/logger.hpp>
|
||||||
|
|
||||||
using namespace std::literals;
|
using namespace std::literals;
|
||||||
|
|
||||||
size_t get_base();
|
size_t get_base();
|
||||||
|
|
||||||
size_t operator"" _b(size_t val);
|
size_t operator"" _b(size_t val);
|
||||||
size_t reverse_b(size_t val);
|
size_t reverse_b(size_t val);
|
||||||
size_t reverse_b(const void* val);
|
size_t reverse_b(const void* val);
|
||||||
|
|
||||||
|
|
||||||
size_t operator"" _g(size_t val);
|
size_t operator"" _g(size_t val);
|
||||||
size_t reverse_g(size_t val);
|
size_t reverse_g(size_t val);
|
||||||
size_t reverse_g(const void* val);
|
size_t reverse_g(const void* val);
|
Loading…
Reference in New Issue
Block a user