Penetrum-Security / Maltree-Issue-Repo

Issues that are presented to Malcore and Malnet
https://penetrum.com/upload
3 stars 2 forks source link

Maltree Dev Issue (3ba49c7dd361203) #3261

Open Penetrum-Security opened 3 years ago

Penetrum-Security commented 3 years ago

Python version 2.717 Traceback:

Traceback (most recent call):
  File "/home/loki/bin/python/maltree/lib/settings.py", line 1498, in get_elf_sections
    elf = ELFFile(f)
  File "/home/loki/bin/python/maltree/thirdparty/pyelf/elftools/elf/elffile.py", line 87, in __init__
    self._file_stringtable_section = self._get_file_stringtable()
  File "/home/loki/bin/python/maltree/thirdparty/pyelf/elftools/elf/elffile.py", line 597, in _get_file_stringtable
    header=self._get_section_header(stringtable_section_num),
  File "/home/loki/bin/python/maltree/thirdparty/pyelf/elftools/elf/elffile.py", line 474, in _get_section_header
    stream_pos=self._section_offset(n))
  File "/home/loki/bin/python/maltree/thirdparty/pyelf/elftools/common/utils.py", line 41, in struct_parse
    stream.seek(stream_pos)
[Errno 22] Invalid argument

Running platform: Linux-5.4.0-67-generic-x86_64-with-Ubuntu-18.04-bionic Last 30 lines of log file:

[DEBUG][MALCORE][Thu Oct 14 19:19:46 2021] creating a string to output from provided object type <type 'list'> (is_shellcode=False is_network=False)
[DEBUG][MALCORE][Thu Oct 14 19:19:46 2021] creating a string to output from provided object type <type 'list'> (is_shellcode=False is_network=False)
[DEBUG][MALCORE][Thu Oct 14 19:19:46 2021] grabbing sections out of ELF file
[FATAL][MALCORE][Thu Oct 14 19:19:46 2021] received exception from run: 
Traceback (most recent call):
  File "/home/loki/bin/python/maltree/lib/settings.py", line 1498, in get_elf_sections
    elf = ELFFile(f)
  File "/home/loki/bin/python/maltree/[REDACTED]/pyelf/elftools/elf/elffile.py", line 87, in __init__
    self._file_[REDACTED]_section = self._get_file_[REDACTED]()
  File "/home/loki/bin/python/maltree/[REDACTED]/pyelf/elftools/elf/elffile.py", line 597, in _get_file_[REDACTED]
    header=self._get_section_header([REDACTED]_section_num),
  File "/home/loki/bin/python/maltree/[REDACTED]/pyelf/elftools/elf/elffile.py", line 474, in _get_section_header
    stream_pos=self._section_offset(n))
  File "/home/loki/bin/python/maltree/[REDACTED]/pyelf/elftools/common/utils.py", line 41, in struct_parse
    stream.seek(stream_pos)
[Errno 22] Invalid argument
[ERROR][MALCORE][Thu Oct 14 19:19:46 2021] creating issue with the title: Maltree Dev Issue ([REDACTED]) and the body
Traceback (most recent call):
  File "/home/loki/bin/python/maltree/lib/settings.py", line 1498, in get_elf_sections
    elf = ELFFile(f)
  File "/home/loki/bin/python/maltree/[REDACTED]/pyelf/elftools/elf/elffile.py", line 87, in __init__
    self._file_[REDACTED]_section = self._get_file_[REDACTED]()
  File "/home/loki/bin/python/maltree/[REDACTED]/pyelf/elftools/elf/elffile.py", line 597, in _get_file_[REDACTED]
    header=self._get_section_header([REDACTED]_section_num),
  File "/home/loki/bin/python/maltree/[REDACTED]/pyelf/elftools/elf/elffile.py", line 474, in _get_section_header
    stream_pos=self._section_offset(n))
  File "/home/loki/bin/python/maltree/[REDACTED]/pyelf/elftools/common/utils.py", line 41, in struct_parse
    stream.seek(stream_pos)
[Errno 22] Invalid argument