Closed wangshuai901 closed 5 years ago
@cblichmann thank you for taking care of this. Any comments or suggestions? Thanks a lot.
There are several things going on here:
zynamics_binexport_8
as the plugin name in the IDC, which is the old name (BinDiff 4.x). The curent version uses just binexport10
.idat64
is entirely untested with BinDiff 5. I don't recommend using it.So the correct script would be
static main() {
batch(0);
auto_wait();
qexit(1 - load_and_run_plugin("binexport10", 2));
}
However, you can do without an IDC script:
TVHEADLESS=1 /opt/idapro-7.3/ida64 \
-OBinExportModule:<DIRECTORY_OR_BINEXPORT_FILENAME>
-OBinExportAlsoLogToStdErr:TRUE \
-OBinExportAutoAction:BinExportBinary \
<PATH_TO_YOUR_EXE_OR_IDB>
Note that TVHEADLESS=1
is optional, as is -OBinExportAlsoLogToStdErr:TRUE
.
@cblichmann Thanks a lot for the comments. I am connecting a remote server with no X so ida64
is not working. Here are what I have been doing so far:
./idat64
, click the File
-> Load File
-> Script File
and load the script you provided. It shows that "exporting Database; Please wait", but after it is finished, I still cannot find the exported .BinExport
file.
I tried the second option without IDC script:
Somehow it is still hanging there.. I guess I will try to setup the X and use ida64
. Will keep you posted.
Did you strace/debug the IDA process to see where it is hanging? Maybe it's just waiting for user input (you didn't specify -A
).
Closing. Feel free to reopen if you still need help.
Hello,
I am using IDA 7.3 on Linux and the latest version of Bindiff (Bindiff ver. 5 and BinExport 10). And I am writing to inquire the procedure to export a
binExport
database from the commandline.So after installing the
BinDiff
and IDA-Pro, I am using the following command:And the
bin_export.idc
script is like this:However, after executing the command, somehow it is hanging there, and cannot proceed any further.. Am I doing anything wrong? Thank you.