From 670df0d57b888c676347b45237f71dab201acb41 Mon Sep 17 00:00:00 2001 From: AndrewQuijano Date: Tue, 27 Aug 2024 07:20:17 -0400 Subject: [PATCH] script fixes --- scripts/bug_mining.py | 3 +-- scripts/lava.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/bug_mining.py b/scripts/bug_mining.py index d7433600..5c645651 100644 --- a/scripts/bug_mining.py +++ b/scripts/bug_mining.py @@ -196,10 +196,8 @@ def progress(msg): panda.load_plugin("taint2", args={ - 'enable_hypercalls' : True, 'no_tp': True }) -panda.load_plugin("pri_taint") panda.load_plugin("tainted_branch") if 'use_stdin' in project and project['use_stdin']: @@ -221,6 +219,7 @@ def progress(msg): 'enable_taint_on_open': True, 'verbose' : True }) +panda.load_plugin("pri_taint") # Default name is 'recording' # https://github.com/panda-re/panda/blob/dev/panda/python/core/pandare/panda.py#L2595 diff --git a/scripts/lava.py b/scripts/lava.py index cd3b3cf8..970f07c7 100644 --- a/scripts/lava.py +++ b/scripts/lava.py @@ -576,7 +576,7 @@ def __init__(self, project): tar_files = subprocess.check_output(['tar', 'tf', project['tarfile']], stderr=sys.stderr) - self.source_root = tar_files.splitlines()[0].split(os.path.sep)[0] + self.source_root = tar_files.decode().splitlines()[0].split(os.path.sep)[0] self.queries_build = join(self.top_dir, self.source_root) self.bugs_top_dir = join(self.top_dir, 'bugs')