#1 - .bin
gcc-7 -m32 -std=gnu89 -O0 -fgnu89-inline -DSPEC_CPU -DNDEBUG -DPERL_CORE -DSPEC_CPU_LINUX_IA32 400/av.c 400/deb.c 400/doio.c 400/doop.c 400/dump.c 400/globals.c 400/gv.c 400/hv.c 400/locale.c 400/mg.c 400/numeric.c 400/op.c 400/pad.c 400/perl.c 400/perlapi.c 400/perlio.c 400/perlmain.c 400/perly.c 400/pp.c 400/pp_ctl.c 400/pp_hot.c 400/pp_pack.c 400/pp_sort.c 400/pp_sys.c 400/regcomp.c 400/regexec.c 400/run.c 400/scope.c 400/sv.c 400/taint.c 400/toke.c 400/universal.c 400/utf8.c 400/util.c 400/xsutils.c 400/Base64.c 400/Cwd.c 400/Dumper.c 400/HiRes.c 400/IO.c 400/Peek.c 400/attrs.c 400/poll.c 400/stdio.c 400/DynaLoader.c 400/MD5.c 400/Storable.c 400/Parser.c 400/specrand.c 400/Hostname.c 400/Opcode.c -lm -o O0.bin
#2 - .i64 (暂时不需要)
idaq64 -c -A -SIDAMetrics_xl.py O0.bin
#3 - .BinExport
idaq64 -A -c -OExporterModule:"/media/xiaolei/ren/625_creatBin/" -S"bindiff_export.idc" O0.bin
#4 - .result
differ -log_format --primary=/media/xiaolei/ren/400_creatBin/O0.BinExport --secondary=/media/xiaolei/ren/400_creatBin/gcc-400-1.BinExport
#5 - read and save result
#6
export PATH=/opt/zynamics/BinDiff/bin/:$PATH
echo $PATH
Comments