if job is None: raise Exception("Couldn't find job %d", job_id) cs_fielding_id = job.payload['target_cs_fld'] ids_fielding_id = job.payload['target_ids_fld'] # get the cbnp for the originals if there isn't a fielding id if cs_fielding_id is None: ids_rules = None if job.cs.is_multi_cbn: cbnp = map(lambda c: c.path, job.cs.cbns_original) else: cbnp = job.cs.cbns_original[0].path # otherwise get the cs's in the fielding else: cbnp = map(lambda c: c.path, ChallengeSetFielding.get(id=cs_fielding_id).cbns) # if the ids_fielding id is not None get it ids_rules = None if ids_fielding_id is not None: ids_rules_obj = IDSRuleFielding.get(id=ids_fielding_id).ids_rule if ids_rules_obj is not None and ids_rules_obj.rules is not None and len(str(ids_rules_obj.rules).strip()) > 0: ids_rules = str(ids_rules_obj.rules) crash = job.input_crash crash_payload = str(crash.blob) time_limit = job.limit_time-10 l.info("Pov fuzzer 1 beginning to exploit crash %d for challenge %s", crash.id, job.cs.name) try: pov_fuzzer = pov_fuzzing.Type1CrashFuzzer(cbnp, crash=crash_payload, ids_rules=ids_rules, time_limit=time_limit)
raise Exception("Couldn't find job %d", job_id) cs_fielding_id = job.payload['target_cs_fld'] ids_fielding_id = job.payload['target_ids_fld'] # get the cbnp for the originals if there isn't a fielding id if cs_fielding_id is None: ids_rules = None if job.cs.is_multi_cbn: cbnp = map(lambda c: c.path, job.cs.cbns_original) else: cbnp = job.cs.cbns_original[0].path # otherwise get the cs's in the fielding else: cbnp = map(lambda c: c.path, ChallengeSetFielding.get(id=cs_fielding_id).cbns) # if the ids_fielding id is not None get it ids_rules = None if job.payload['target_ids_fld'] is not None: ids_rules_obj = IDSRuleFielding.get(id=ids_fielding_id).ids_rule if ids_rules_obj is not None and ids_rules_obj.rules is not None and len( str(ids_rules_obj.rules).strip()) > 0: ids_rules = str(ids_rules_obj.rules) crash = job.input_crash crash_payload = str(crash.blob) time_limit = job.limit_time - 10 l.info("Pov fuzzer 2 beginning to exploit crash %d for challenge %s", crash.id, job.cs.name)