This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
class CustomFuzzing: | |
"""A class to execute custom fuzzing tasks on local binaries.""" | |
@staticmethod | |
def run_fuzzer(target_binary, timeout=60): | |
""" | |
Runs a fuzzing instance on a specified target binary using OSS-Fuzz infrastructure. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
class OSSFuzzResults: | |
"""A class for accessing OSS-Fuzz historical results and crash reports.""" | |
BASE_URL = "https://oss-fuzz.com/api/v1/reports" | |
@staticmethod | |
def get_crash_reports(project_name, start_date, end_date): | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
class OSSFuzzAPI: | |
"""A class to interact with OSS-Fuzz's API for retrieving project information.""" | |
BASE_URL = "https://oss-fuzz.com/api/v1/projects" | |
@staticmethod | |
def get_all_projects(): | |
""" |