예제 #1
0
 def __init__(self, pe, report, strings):
     self.filename = pe.filename
     self.file_info = pe.file_info(report, True)
     self._tsl = pe.checkTSL()
     self.check_imports = pe.check_imports()
     self.check_date = pe.check_date(True)
     self.sections_analysis = pe.sections_analysis(report)
     self.check_file_header = pe.check_file_header(report)
     self.ascii_strings = ascii_strings(self.filename, strings)
     self.unicode_strings = unicode_strings(self.filename, strings)
예제 #2
0
 def __init__(self, elf, report):
     self.filename = elf.filename
     self.file_info = elf.file_info(report)
     self.dependencies = elf.dependencies().read().decode('utf-8')
     self.elf_header = elf.elf_header().read().decode('utf-8')
     self.program_header = elf.program_header().read().decode('utf-8')
     self.section_header = elf.section_header().read().decode('utf-8')
     self.symbols = elf.symbols().read().decode('utf-8')
     self.ascii_strings = ascii_strings(self.filename)
     self.unicode_strings = unicode_strings(self.filename)
예제 #3
0
 def __init__(self, other, strings):
     self.filename = os.path.basename(other[0])
     self.file_info = other
     self.ascii_strings = ascii_strings(self.filename, strings)
     self.unicode_strings = unicode_strings(self.filename, strings)