Vector35 / Vector35/binaryninja-api

Add PluginCommands IL instructions and expressions

Open
#7,165 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: API Component: Plugin Effort: Low Impact: Medium
Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

Description

What is the feature you'd like to have?
There is already register_for_xxx_level_il_instruction handlers, it would be awesome to have same thing for expressions (or sub-instructions, as all of them is just an instruction types), to be able to distinguish cases when plugin is triggered when cursor is focused on token instead of whole line. Currently no matter where focus is, the ILInstruction provided to handler would be the whole instruction on the line.

Are any alternative solutions acceptable?
Well, currently UIAction can do all of this, but IMHO in that way there is unnecessary legwork to do.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing register_for_xxx_level_il_instruction handlers and how they receive the whole line instruction. Compare that behavior with the UIAction workaround described in the issue. Done means plugins can register handlers for expression or sub-instruction IL elements and receive the element associated with the focused token rather than always the whole line instruction.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, reverse-engineering
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.