Skip to content

Commit

Permalink
Added fsext back-end log2timeline#464
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Aug 11, 2020
1 parent 5abe73a commit b818a47
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 9 additions & 1 deletion dfvfs/analyzer/ext_analyzer_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,17 @@ def GetFormatSpecification(self):
self.type_indicator)

# EXT file system signature.
format_specification.AddNewSignature(b'\x53\xef', offset=56)
format_specification.AddNewSignature(b'\x53\xef', offset=1080)

return format_specification

def IsEnabled(self):
"""Determines if the analyzer helper is enabled.
Returns:
bool: True if the analyzer helper is enabled.
"""
return definitions.PREFERRED_EXT_BACK_END == self.TYPE_INDICATOR


analyzer.Analyzer.RegisterHelper(EXTAnalyzerHelper())
5 changes: 3 additions & 2 deletions dfvfs/analyzer/tsk_analyzer_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ def GetFormatSpecification(self):
# HFSX file system signature.
format_specification.AddNewSignature(b'HX', offset=1024)

# Ext file system signature.
format_specification.AddNewSignature(b'\x53\xef', offset=1080)
if definitions.PREFERRED_EXT_BACK_END == self.TYPE_INDICATOR:
# Ext file system signature.
format_specification.AddNewSignature(b'\x53\xef', offset=1080)

# ISO9660 file system signature.
format_specification.AddNewSignature(b'CD001', offset=32769)
Expand Down

0 comments on commit b818a47

Please sign in to comment.