From 821fa137f15b16cbdb6f5052bea19b5f320fbfb1 Mon Sep 17 00:00:00 2001 From: sjanusz-r7 Date: Thu, 18 Jan 2024 10:52:21 +0000 Subject: [PATCH] Remove AARCH64 reference --- modules/post/multi/gather/memory_search.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/post/multi/gather/memory_search.rb b/modules/post/multi/gather/memory_search.rb index 746d8009f2b46..670b94bd4b03e 100644 --- a/modules/post/multi/gather/memory_search.rb +++ b/modules/post/multi/gather/memory_search.rb @@ -142,9 +142,8 @@ def print_result(result: nil) 'Indent' => 1, 'Columns' => ['Match Address', 'Match Length', 'Match Buffer', 'Memory Region Start', 'Memory Region Size'] ) - x64_architectures = [ ARCH_X64, ARCH_AARCH64 ].freeze - address_length = x64_architectures.include?(session.native_arch) ? 16 : 8 + address_length = session.native_arch == ARCH_X64 ? 16 : 8 result_group_tlvs.each do |result_group_tlv| match_address = result_group_tlv.get_tlv(::Rex::Post::Meterpreter::Extensions::Stdapi::TLV_TYPE_MEMORY_SEARCH_MATCH_ADDR).value.to_s(16).upcase match_length = result_group_tlv.get_tlv(::Rex::Post::Meterpreter::Extensions::Stdapi::TLV_TYPE_MEMORY_SEARCH_MATCH_LEN).value