2023-11-18 10:59:00 -07:00
|
|
|
import yaml
|
|
|
|
import ast_parser
|
|
|
|
import ast_generator
|
|
|
|
|
2023-11-17 16:57:53 -07:00
|
|
|
class GazpreaFuzzer:
|
2023-11-18 10:59:00 -07:00
|
|
|
def __init__(self, config: str):
|
|
|
|
# parse a yaml config file with path in config
|
|
|
|
# and set the appropriate parameters
|
|
|
|
with open(config) as yaml_file:
|
|
|
|
settings: dict = yaml.safe_load(yaml_file)
|
|
|
|
self.settings = settings
|
|
|
|
|
|
|
|
self.parser = None
|
|
|
|
self.generator = ast_generator.AstGenerator()
|
|
|
|
|