From d5a308955938cbc34b956648156236d2ca7853d8 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 27 Aug 2022 11:10:43 +0200 Subject: [PATCH] Reset aslr bit to allow patching the binary --- src/client/component/arxan.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/client/component/arxan.cpp b/src/client/component/arxan.cpp index 6578dfc8..160172f8 100644 --- a/src/client/component/arxan.cpp +++ b/src/client/component/arxan.cpp @@ -807,6 +807,14 @@ namespace arxan class component final : public component_interface { public: + component() + { +#ifndef NDEBUG + auto* dll_characteristics = &utils::nt::library().get_optional_header()->DllCharacteristics; + utils::hook::set(dll_characteristics, *dll_characteristics | IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE); +#endif + } + void pre_start() override { disable_tls_callbacks();