Esempio n. 1
0
 def test_yara_exe(self):
     additional_params = {
         "directories_with_rules": [
             "/opt/deploy/yara/rules", "/opt/deploy/yara/yara-rules",
             "/opt/deploy/yara/signature-base/yara"
         ]
     }
     report = yara_scan.run("Yara_Scan", self.job_id, self.filepath,
                            self.filename, self.md5, additional_params)
     self.assertEqual(report.get('success', False), True)
Esempio n. 2
0
def yara_run(analyzer_name, job_id, filepath, filename, md5,
             additional_config_params):
    yara_scan.run(analyzer_name, job_id, filepath, filename, md5,
                  additional_config_params)