Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
NAME = 'GrepJob'
def create_tasks(self, evidence):
"""Create task.
Args:
evidence: List of evidence objects to process
Returns:
A list of tasks to schedule.
"""
tasks = [GrepTask() for _ in evidence]
return tasks
manager.JobsManager.RegisterJob(GrepJob)
NAME = 'PsortJob'
def create_tasks(self, evidence):
"""Create task for Psort.
Args:
evidence: List of evidence objects to process
Returns:
A list of PsortTasks.
"""
return [PsortTask() for _ in evidence]
manager.JobsManager.RegisterJob(PsortJob)
NAME = 'StatJob'
def create_tasks(self, evidence):
"""Create task for Stat.
Args:
evidence: List of evidence objects to process
Returns:
A list of StatTasks.
"""
return [StatTask() for _ in evidence]
manager.JobsManager.RegisterJob(StatJob)
NAME = 'JenkinsAnalysisJob'
def create_tasks(self, evidence):
"""Create task for Jenkins analysis job.
Args:
evidence: List of evidence objects to process
Returns:
A list of tasks to schedule.
"""
tasks = [JenkinsAnalysisTask() for _ in evidence]
return tasks
manager.JobsManager.RegisterJob(JenkinsAnalysisJob)
NAME = 'HadoopAnalysisJob'
def create_tasks(self, evidence):
"""Create task.
Args:
evidence: List of evidence objects to process
Returns:
A list of tasks to schedule.
"""
tasks = [HadoopAnalysisTask() for _ in evidence]
return tasks
manager.JobsManager.RegisterJob(HadoopAnalysisJob)
NAME = 'PlasoJob'
def create_tasks(self, evidence):
"""Create task for Plaso.
Args:
evidence: List of evidence objects to process
Returns:
A list of PlasoTasks.
"""
return [PlasoTask() for _ in evidence]
manager.JobsManager.RegisterJob(PlasoJob)
def create_tasks(self, evidence):
"""Create task for Strings.
Args:
evidence: List of evidence objects to process
Returns:
A list of tasks to schedule.
"""
# Generate tasks for both types of Strings jobs
tasks = [StringsAsciiTask() for _ in evidence]
tasks.extend([StringsUnicodeTask() for _ in evidence])
return tasks
manager.JobsManager.RegisterJob(StringsJob)