Skip to content

Commit

Permalink
Remove dead args from file_taint
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewQuijano committed Dec 1, 2024
1 parent 22d470e commit be62db0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 32 deletions.
3 changes: 1 addition & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ else
exit 1
fi

curl -LJO https://github.com/panda-re/panda/releases/download/v1.8.23/pandare_22.04.deb
mv *.deb /tmp
curl -LJ -o /tmp/pandare_22.04.deb https://github.com/panda-re/panda/releases/download/v1.8.45/pandare_22.04.deb
$SUDO apt-get -y install /tmp/pandare_22.04.deb
rm /tmp/*.deb

Expand Down
46 changes: 16 additions & 30 deletions scripts/bug_mining.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,46 +174,32 @@ def progress(msg):
# Based on this example:
# https://github.com/panda-re/panda/blob/dev/panda/python/examples/file_taint/file_taint.py
panda.set_pandalog(pandalog)
panda.load_plugin("loaded",
args={
'debug': True,
})
panda.load_plugin("pri")
panda.load_plugin("taint2",
args={
'no_tp': True
'no_tp': True,
'enable_hypercalls' : False
})
panda.load_plugin("tainted_branch")

panda.load_plugin("dwarf2",
args={
'proc': proc_name,
'g_debugpath': installdir,
'h_debugpath': installdir
'h_debugpath': installdir,
'debug' : True
})

if 'use_stdin' in project and project['use_stdin']:
print("Using stdin for taint analysis")
panda.load_plugin("file_taint",
args={
'filename': input_file_guest,
'pos': True,
'cache_process_details_on_basic_block': True,
'first_instr': 1,
'use_stdin': proc_name,
'verbose': True
})
else:
print("Using open for taint analysis")
panda.load_plugin("file_taint",
args={
'filename': input_file_guest,
'pos': True,
'cache_process_details_on_basic_block': True,
'enable_taint_on_open': True,
'verbose': True
})


panda.load_plugin("file_taint",
args={
'filename': input_file_guest,
'pos': True,
'verbose': True
})
panda.load_plugin("pri_taint", args={
'hypercall': True,
'chaff': False
'debug' : True
})

# Default name is 'recording'
Expand Down Expand Up @@ -246,7 +232,7 @@ def progress(msg):
fbi_args = [join(lavadir, 'tools', 'install', 'bin', 'fbi'), host_json,
project_name, pandalog_json, input_file_base]

# Command line curtial argument takes priority, otherwise use project specific one
# Command line curtail argument takes priority, otherwise use project specific one
# global curtail
if curtail != 0:
fbi_args.append(str(curtail))
Expand Down

0 comments on commit be62db0

Please sign in to comment.