Skip to content

Commit

Permalink
Remove AARCH64 reference
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanusz-r7 committed Jan 18, 2024
1 parent 9703d45 commit 821fa13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/post/multi/gather/memory_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 821fa13

Please sign in to comment.