# File lib/rex/elfscan/scanner.rb, line 15 def config(param) end
# File lib/rex/elfscan/scanner.rb, line 18 def scan(param) config(param) $stdout.puts "[#{param['file']}]" elf.program_header.each do |program_header| # Scan only loadable segment entries in the program header table if program_header.p_type == Rex::ElfParsey::ElfBase::PT_LOAD hits = scan_segment(program_header, param) hits.each do |hit| rva = hit[0] message = hit[1].is_a?(Array) ? hit[1].join(" ") : hit[1] $stdout.puts elf.ptr_s(rva) + " " + message end end end end
Generated with the Darkfish Rdoc Generator 2.