diaphora icon indicating copy to clipboard operation
diaphora copied to clipboard

Hot Key to import function information (Minor)

Open mspublic opened this issue 9 years ago • 6 comments

Now that IDA 6.8 has been released and fixes the select issue (which works great now with Diaphora). It would be really nice to have the ability to assign a hotkey to import the function as opposed to manually selecting with mouse. Related a bit to this issue: https://github.com/joxeankoret/diaphora/issues/4

mspublic avatar Apr 15 '15 02:04 mspublic

It wasn't possible to do so with 6.6 and I wanted to offer support for the 2 last public releases of IDA. With 6.8, I can do it supporting also the previous one, 6.7. So, yes, I will implement it soon.

joxeankoret avatar Apr 15 '15 11:04 joxeankoret

Temp work around.

How to add Diaphora shortcut in IDA:

Edit ida.idc Lookup for main() Add: AddHotkey("Alt-F8", "py_rundiaphora");

Then add the following function at the end of ida.idc

static py_rundiaphora() { RunPythonStatement("sys.path.insert(1, '/path_to_diaphora_folder/diaphora/')"); RunPythonStatement("execfile('/path_to_diaphora_folder/diaphora/diaphora.py')"); }

Ref: http://pastebin.com/piRb6VyG

nanotechz9l avatar Nov 24 '15 08:11 nanotechz9l

NOTE: With the new IDA UI and actions systems, it's crazy to enable/disable an action based on the current (focused) chooser when the same shortcut is set for various choosers. In short: It will, still, need more time :/ I have to ask the Hex-Rays guys because I don't know how to do it...

joxeankoret avatar Dec 21 '17 10:12 joxeankoret

I cannot get it to work with multiple choosers at all. Help is highly appreciated.

joxeankoret avatar Jan 02 '18 21:01 joxeankoret

Believe it or not, it's fucking horrible still nowadays :/

joxeankoret avatar Oct 17 '19 11:10 joxeankoret

Happy birthday! Also, believe it or not, it's still horrible to fix this.

joxeankoret avatar Apr 10 '23 17:04 joxeankoret