Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.16 KB

analysis_readme.md

File metadata and controls

31 lines (23 loc) · 1.16 KB

Plugging in custom script for instruction highlighting

  • Place your scripts inside the cfgexplorer/scripts directory.
  • In the analysis.json file, add the scripts

For Instruction Highlighting

The script should output a list of instructions to be highlighted along with a distance metric for general gradient based highlighting. For single color highlighting, the distances can all be same.

[{ "instr_addr":"4006cf"
"dist":1},
{ "instr_addr":"400dec"
"dist":2},
.
.
.
]

In the analysis.json file, inside scripts, add the scripts. For each script,

  • Enter the type. Currently the only type available is instrHighlight which highlights the instructions in both the CFG and the trace (if provided).
  • Enter the id of the script that serves as the unique identifier for the highlighting script.
  • Enter the name of the highlighting or analysis script.
  • Enter the language (as you would call it from a UNIX command line for e.g. python3, ruby etc.).
  • Enter the scriptpathto be the path of the analysis script for eg. scripts/taint.py.
  • Enter the outfilename to be the name of the file output by the program.