Exemple #1
0
 def test_boxjs(self, mock_get=None, mock_post=None):
     report = boxjs_scan.BoxJS(
         "BoxJS_Scan_JavaScript",
         self.job_id,
         self.filepath,
         self.filename,
         self.md5,
         {},
     ).start()
     self.assertEqual(report.get("success", False), True)
Exemple #2
0
def boxjs_run(analyzer_name, job_id, filepath, filename, md5,
              additional_config_params):
    boxjs_scan.BoxJS(analyzer_name, job_id, filepath, filename, md5,
                     additional_config_params).start()