This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from binaryninja import HighlightStandardColor, PluginCommand | |
| def do_backward_slice(instruction, function): | |
| # switch to SSA form (this does nothing if it's already SSA). | |
| instruction_queue = set([instruction.ssa_form.instr_index]) | |
| visited_instructions = set() | |
| variables = set() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import struct | |
| import threading | |
| import binaryninja as bn | |
| class Graph(object): | |
| def __init__(self, view): | |
| # type: (Graph, bn.BinaryView) -> None | |
| self.view = view |