GH-35c22eb7beb579a537ed8bdac1471048
Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
#! /usr/bin/python import os import shutil import sys base_path = sys.argv[1] for path, dirs, files in os.walk(base_path): for file in files: if file == 'mojo_bindings.js' or file == 'mojo_bindings_lite.js': shutil.copyfile(os.path.join(path, file), os.path.join('./', file)) if file.endswith('.mojom.js') or file.endswith('.mojom-lite.js') or file.endswith('.mojom.m.js') or file == 'bindings.js': target_path = os.path.join('./', path[len(base_path) + 1:]) try: os.makedirs(target_path) except: pass shutil.copyfile(os.path.join(path, file), os.path.join(target_path, file))