Method: Rex::PeParsey::PeBase#_find_section_by_rva

Defined in:
lib/rex/peparsey/pebase.rb

#_find_section_by_rva(rva) ⇒ Object

Find a section by an RVA



1235
1236
1237
1238
1239
1240
1241
1242
1243
# File 'lib/rex/peparsey/pebase.rb', line 1235

def _find_section_by_rva(rva)
  all_sections.each do |section|
    if section.contains_rva?(rva)
      return section
    end
  end

  return nil
end