Esempio n. 1
0
 def test_capa_scan_file(self, mock_get=None, mock_post=None):
     report = capa_info.CapaInfo(
         "Capa_Info",
         self.job_id,
         self.filepath,
         self.filename,
         self.md5,
         {},
     ).start()
     self.assertEqual(report.get("success", False), True)
Esempio n. 2
0
def capa_info_run(analyzer_name, job_id, filepath, filename, md5,
                  additional_config_params):
    capa_info.CapaInfo(analyzer_name, job_id, filepath, filename, md5,
                       additional_config_params).start()