mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 07:00:30 +00:00
21 lines
375 B
JavaScript
21 lines
375 B
JavaScript
(function() {
|
|
let { log } = console;
|
|
|
|
function parseExample() {
|
|
function parseCall(input) {
|
|
return input.replace("sp, -0x60", "LOCALVAR");
|
|
}
|
|
return {
|
|
name: "qjs",
|
|
desc: "Example QJS RParse plugin (qjs://)",
|
|
parse: parseCall,
|
|
};
|
|
}
|
|
|
|
r2.plugin("parse", parseExample);
|
|
r2.cmd("-e asm.parser=qjs");
|
|
r2.cmd("-e asm.pseudo=true");
|
|
r2.cmd("pd 10");
|
|
})();
|
|
|