Skip to content

Commit

Permalink
#212 WIP - update long report, improve submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed May 16, 2018
1 parent c5ed8cc commit 6b9697e
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 391 deletions.
2 changes: 1 addition & 1 deletion analyzers/FileInfo/submodules/submodule_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def analyze_file(self, path):
# Get libmagic info
magicliteral = magic.Magic().from_file(path)
mimetype = magic.Magic(mime=True).from_file(path)
self.add_result_subsection('Filetype determination', {
self.add_result_subsection('File information', {
'Magic literal': magicliteral,
'MimeType': mimetype,
'Filetype': pyexifinfo.fileType(path),
Expand Down
2 changes: 1 addition & 1 deletion analyzers/FileInfo/submodules/submodule_outlook.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self):

def check_file(self, **kwargs):
try:
if kwargs.get('mimetype') == 'application/vnd.ms-outlook':
if kwargs.get('mimetype') in ['application/vnd.ms-outlook', 'application/CDFV2-unknown']:
return True
except KeyError:
return False
Expand Down
Loading

0 comments on commit 6b9697e

Please sign in to comment.