2

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?

  • Did you save the database? – user202729 Sep 22 '18 at 15:52
  • Yep, I saved it after doing so, however, otherwise I would have lost comments. – Numeri Sep 22 '18 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 '18 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 '18 at 4:14
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.

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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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