-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ae3c93
commit cedf5c6
Showing
8 changed files
with
514 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"""Job to execute elf analysis task.""" | ||
|
||
from turbinia.evidence import ElfExtraction | ||
from turbinia.evidence import Directory | ||
from turbinia.evidence import RawDisk | ||
from turbinia.evidence import ReportText | ||
from turbinia.jobs import interface | ||
from turbinia.jobs import manager | ||
from turbinia.workers.analysis import elf | ||
|
||
|
||
class ElfAnalysisJob(interface.TurbiniaJob): | ||
"""ELF analysis job.""" | ||
|
||
evidence_input = [ElfExtraction] | ||
evidence_output = [ReportText] | ||
|
||
NAME = 'ElfAnalysisJob' | ||
|
||
def create_tasks(self, evidence): | ||
"""Create task. | ||
Args: | ||
evidence: List of evidence objects to process | ||
Returns: | ||
A list of tasks to schedule. | ||
""" | ||
tasks = [elf.ElfAnalysisTask() for _ in evidence] | ||
return tasks | ||
|
||
|
||
manager.JobsManager.RegisterJob(ElfAnalysisJob) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.