def run(self): if self.tool == 'mutilator': mutilator.run(self.seed_dir, self.samples_dir, self.strategy, self.max_total_mutations) elif self.tool == 'taskmaster': taskmaster.run(self.binary, self.fuzz_args, self.ttl, self.samples_dir, self.work_dir, self.crash_dir, self.recover_time, self.destructive, self.debugger) elif self.tool == 'autopsy': autopsy.run(self.binary, self.fuzz_args, self.ttl) elif self.tool == 'auto': if self.run_lackey: lackey_thread = Thread(target=self.lackey_worker) lackey_thread.start() worker = Thread(target=self.mutilator_worker) worker.start() taskmaster.run(self.binary, self.fuzz_args, self.ttl, self.samples_dir, self.work_dir, self.crash_dir, self.recover_time, self.destructive, self.debugger)
def mutilator_worker(self): strategy_args = dict() strategy_args['radamsa_bin'] = self.radamsa_bin while True: mutilator.run(self.seed_dir, self.samples_dir, self.strategy, self.max_total_mutations, strategy_args) sleep(self.recover_time)