mirror of
https://github.com/SpecterOps/Nemesis
synced 2026-06-08 12:36:42 +00:00
Expanded files processed by Apache Tika
-Expanded files processed by Apache Tika
This commit is contained in:
@@ -551,7 +551,7 @@ class FileProcessor(TaskInterface):
|
||||
doc_is_encrypted = file_data.parsed_data.is_encrypted
|
||||
|
||||
# If the file extension indicates that plaintext can be extracted through Tika
|
||||
if tika_compatible and not doc_is_encrypted:
|
||||
if (tika_compatible or not file_is_binary) and not doc_is_encrypted:
|
||||
try:
|
||||
# use Tika to extract to a new local UUID that references the uploaded Nemesis file text
|
||||
plaintext_file_id = await self.extract_text(file_path_on_disk)
|
||||
|
||||
Reference in New Issue
Block a user