From 2660c4f96d4c7a4227883e23f70bf238e487ba13 Mon Sep 17 00:00:00 2001 From: Yimura <24669514+Yimura@users.noreply.github.com> Date: Sun, 8 May 2022 18:31:36 +0200 Subject: [PATCH] feat(System): Added looped feature to disable sigscanner fixes #180 --- BigBaseV2/src/backend/backend.cpp | 1 + BigBaseV2/src/backend/looped/looped.hpp | 3 ++- .../src/backend/looped/system/anticheat_bypass.cpp | 11 +++++++++++ BigBaseV2/src/pointers.cpp | 6 ++++++ BigBaseV2/src/pointers.hpp | 2 ++ 5 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 BigBaseV2/src/backend/looped/system/anticheat_bypass.cpp diff --git a/BigBaseV2/src/backend/backend.cpp b/BigBaseV2/src/backend/backend.cpp index 7422365d..83a8e8c1 100644 --- a/BigBaseV2/src/backend/backend.cpp +++ b/BigBaseV2/src/backend/backend.cpp @@ -10,6 +10,7 @@ namespace big void backend::loop() { g->attempt_save(); + looped::system_anticheat_bypass(); looped::system_self_globals(); looped::system_update_pointers(); diff --git a/BigBaseV2/src/backend/looped/looped.hpp b/BigBaseV2/src/backend/looped/looped.hpp index 4e1c9664..ce93977f 100644 --- a/BigBaseV2/src/backend/looped/looped.hpp +++ b/BigBaseV2/src/backend/looped/looped.hpp @@ -31,7 +31,8 @@ namespace big static void self_super_run(); static void session_local_time(); - + + static void system_anticheat_bypass(); static void system_self_globals(); static void system_update_pointers(); diff --git a/BigBaseV2/src/backend/looped/system/anticheat_bypass.cpp b/BigBaseV2/src/backend/looped/system/anticheat_bypass.cpp new file mode 100644 index 00000000..8644dd8a --- /dev/null +++ b/BigBaseV2/src/backend/looped/system/anticheat_bypass.cpp @@ -0,0 +1,11 @@ +#include "pointers.hpp" +#include "backend/looped/looped.hpp" + +namespace big +{ + // reference: https://github.com/Yimura/YimMenu/issues/180 + void looped::system_anticheat_bypass() + { + *g_pointers->m_some_anticheat_thing = 0; + } +} \ No newline at end of file diff --git a/BigBaseV2/src/pointers.cpp b/BigBaseV2/src/pointers.cpp index b1fe3e4c..f99a6722 100644 --- a/BigBaseV2/src/pointers.cpp +++ b/BigBaseV2/src/pointers.cpp @@ -254,6 +254,12 @@ namespace big { m_net_array_handler = ptr.sub(0x3C).as(); }); + + // Some Anticheat Thing + main_batch.add("SAT", "89 05 ? ? ? ? 48 8D 05 ? ? ? ? 48 6B DB 38 48 03 D8", [this](memory::handle ptr) + { + m_some_anticheat_thing = ptr.add(2).rip().add(0x14).as(); + }); main_batch.run(memory::module(nullptr)); diff --git a/BigBaseV2/src/pointers.hpp b/BigBaseV2/src/pointers.hpp index ac1b138d..773db9c2 100644 --- a/BigBaseV2/src/pointers.hpp +++ b/BigBaseV2/src/pointers.hpp @@ -44,6 +44,8 @@ namespace big int* m_resolution_x; int* m_resolution_y; + std::uint16_t* m_some_anticheat_thing{}; + PVOID m_blame_explode; PVOID m_model_spawn_bypass; PVOID m_native_return;