3

I saw the File -> Load File -> Additional Binary File option and tried it out. Now I want my original IDA database back (with just one binary), but can't afford to lose the comments I have saved in it.

Is it possible to remove a binary after importing it?

4
  • Did you save the database?
    – user202729
    Sep 22, 2018 at 15:52
  • Yep, I saved it after doing so, however, otherwise I would have lost comments.
    – Numeri
    Sep 22, 2018 at 20:38
  • 2
    You can use/write a plugin that exports/imports comments. Here is a plugin I wrote with some importing/exporting functionality you can use for inspiration: github.com/x64dbg/x64dbgida/blob/master/x64dbgida.py just reopen the file and create a new database and then import comments/labels you exported from your old database.
    – mrexodia
    Sep 23, 2018 at 18:00
  • @mrexodia Make that an answer, it sounds like the easiest way to do what I want! Especially if it is actually impossible to unexport/remove the second binary.
    – Numeri
    Sep 26, 2018 at 4:14

1 Answer 1

1

Perhaps, the built-in function of saving data for export as an IDC script will help you. Try File -> Produce File -> Dump database to IDC script, then create new database and just run IDC script.

1
  • 2
    He'll need to clean all IDC instructions related to the additionally loaded binary, though.
    – NirIzr
    Sep 25, 2018 at 22:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.