Reset aslr bit to allow patching the binary

This commit is contained in:
momo5502 2022-08-27 11:10:43 +02:00
parent 58ba764d59
commit d5a3089559

View File

@ -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<WORD>(dll_characteristics, *dll_characteristics | IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE);
#endif
}
void pre_start() override
{
disable_tls_callbacks();