Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

radare2.plugins.r2ghidra: init at 5.8.2 #213388

Closed
wants to merge 3 commits into from

Conversation

milahu
Copy link
Contributor

@milahu milahu commented Jan 29, 2023

Description of changes

add ghidra plugin for radare2

fix #86448

TODO
  • radare2.withPlugins probably should accept a list of packages, not a list of strings
  • make it work with iaito
  • make it work with rizin
  • make it work with cutter
  • add more radare2 plugins from https://github.com/radareorg/radare2-pm
Testing
# build
nix-build -E 'with import ./. {}; (radare2.withPlugins ["r2ghidra"])'

# shell
nix-shell -E 'with import ./. {}; mkShell { buildInputs = [ (radare2.withPlugins ["r2ghidra"]) hello ]; }'
r2 $(which hello)
# aa
# s main
# pdg

result

void entry0(ulong noname_0, ulong noname_1, ulong arg3)

{
    ulong unaff_retaddr;
    uchar auStack8 [8];
    
    (*_reloc.__libc_start_main)
              (main, unaff_retaddr, &stack0x00000008, sym.__libc_csu_init, sym.__libc_csu_fini, arg3, auStack8);
    do {
    // WARNING: Do nothing block with infinite loop
    } while( true );
}
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.
maintainers

radare2 maintainers @raskin @makefu @Mic92 @arkivm

@domenkozar
Copy link
Member

@domenkozar domenkozar closed this Feb 22, 2023
@NixOS NixOS locked as resolved and limited conversation to collaborators Feb 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Radare2 with Ghidra
2 participants