radareorg / r2pm

Radare2 cross platform package manager
GNU Lesser General Public License v3.0
34 stars 12 forks source link

Supply simple radare2 plugin channeling commands to r2pm #36

Open XVilka opened 5 years ago

XVilka commented 5 years ago

Like in Julia language, to look something like: R2pm should have its own REPL mode, which can be entered from the radare2 shell by pressing ]. To get back to the radare2 shell press backspace or ^C. It will then change the command prompt:

pkg>

Good example how to provide such a command is yara plugin - it installs new command in radare2: https://github.com/radare/radare2-extras/blob/master/yara/yara/core_yara.c So installing r2pm will install the radare2 plugin, which radare2 will automatically load and will provide this command for using directly from the r2 shell.

Migrated from here https://github.com/radare/radare2/issues/14372

/cc @radare @Maijin @xarkes @qbarrand

XVilka commented 5 years ago

See also https://github.com/radare/radare2/issues/14178