From 4f35c29fefad445f9fafa13f079b73a604bf227a Mon Sep 17 00:00:00 2001 From: notcpuid Date: Mon, 25 Aug 2025 12:47:17 +0300 Subject: [PATCH] fix(core): some changes for generate idx_oep offset --- pe-packer/core/core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pe-packer/core/core.cpp b/pe-packer/core/core.cpp index cdd9095..4b1adff 100644 --- a/pe-packer/core/core.cpp +++ b/pe-packer/core/core.cpp @@ -215,7 +215,7 @@ void c_core::xor_sections(std::string sec_to_xor) void c_core::process() { uint32_t ep_addr = m_assembler->offset(); - uint32_t idx_oep = random_value(128, 1024); + uint32_t idx_oep = random_value(0x1000, 0xFFFFFFFF); uint32_t image_base = m_peImage->get_image_base_32(); pe_bliss::section new_section; @@ -348,7 +348,7 @@ void c_core::process() ".reloc" }; - for (int i = 0; i < section_to_xor.size(); i++) + for (unsigned int i = 0; i < section_to_xor.size(); i++) { xor_sections(section_to_xor[i]); }