Radiff2

Radiff2 is a tool designed to compare binary files, similar to how regular diff compares text files.

  1. $ radiff2 -h
  2. Usage: radiff2 [-abBcCdjrspOxuUvV] [-A[A]] [-g sym] [-m graph_mode][-t %] [file] [file]
  3. -a [arch] specify architecture plugin to use (x86, arm, ..)
  4. -A [-A] run aaa or aaaa after loading each binary (see -C)
  5. -b [bits] specify register size for arch (16 (thumb), 32, 64, ..)
  6. -B output in binary diff (GDIFF)
  7. -c count of changes
  8. -C graphdiff code (columns: off-A, match-ratio, off-B) (see -A)
  9. -d use delta diffing
  10. -D show disasm instead of hexpairs
  11. -e [k=v] set eval config var value for all RCore instances
  12. -g [sym|off1,off2] graph diff of given symbol, or between two offsets
  13. -G [cmd] run an r2 command on every RCore instance created
  14. -i diff imports of target files (see -u, -U and -z)
  15. -j output in json format
  16. -n print bare addresses only (diff.bare=1)
  17. -m [aditsjJ] choose the graph output mode
  18. -O code diffing with opcode bytes only
  19. -p use physical addressing (io.va=0)
  20. -q quiet mode (disable colors, reduce output)
  21. -r output in radare commands
  22. -s compute edit distance (no substitution, Eugene W. Myers' O(ND) diff algorithm)
  23. -ss compute Levenshtein edit distance (substitution is allowed, O(N^2))
  24. -S [name] sort code diff (name, namelen, addr, size, type, dist) (only for -C or -g)
  25. -t [0-100] set threshold for code diff (default is 70%)
  26. -x show two column hexdump diffing
  27. -X show two column hexII diffing
  28. -u unified output (---+++)
  29. -U unified output using system 'diff'
  30. -v show version information
  31. -V be verbose (current only for -s)
  32. -z diff on extracted strings
  33. -Z diff code comparing zignatures
  34. Graph Output formats: (-m [mode])
  35. <blank/a> Ascii art
  36. s r2 commands
  37. d Graphviz dot
  38. g Graph Modelling Language (gml)
  39. j json
  40. J json with disarm
  41. k SDB key-value
  42. t Tiny ascii art
  43. i Interactive ascii art