You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# FIXME figure out what is the reason of the error
723
727
returnsymbols
724
728
@@ -734,7 +738,9 @@ def get_binja_arch(bv):
734
738
defsave_binja_binary(bv):
735
739
arch=get_binja_arch(bv)
736
740
ifarchisNone:
737
-
interaction.show_message_box("ERROR", "ELF binaries are supported only")
741
+
binaryninja.interaction.show_message_box(
742
+
"ERROR, {} found!".format(bv.view_type), "The input file is not a ELF"
743
+
)
738
744
return
739
745
740
746
symbols=get_binja_symbols(bv)
@@ -744,7 +750,7 @@ def save_binja_binary(bv):
744
750
)
745
751
write_symbols(
746
752
bv.file.original_filename,
747
-
interaction.get_save_filename_input('Save binary to file', default_name=path),
753
+
binaryninja.interaction.get_save_filename_input('Save binary to file', default_name=path),
748
754
symbols
749
755
)
750
756
@@ -838,6 +844,6 @@ def PLUGIN_ENTRY():
838
844
839
845
840
846
elifUSE_BINJA:
841
-
frombinaryninjaimport*
847
+
importbinaryninja
842
848
log=log_binja
843
-
PluginCommand.register('[sym2elf] Export binary', 'Craft binary with symbols got from function names used in this project', save_binja_binary)
849
+
binaryninja.PluginCommand.register('[sym2elf] Export binary', 'Craft binary with symbols got from function names used in this project', save_binja_binary)
0 commit comments