Skip to content

Instantly share code, notes, and snippets.

@radare

radare/test-afl.js

Created Feb 5, 2017
Embed
What would you like to do?
radare2 + nodejs function list (1m15s on ntdll.dll)
const r2pipe = require("r2pipe");
r2pipe.open('Downloads/ntdll/ntdll.dll', (err, r2) => {
r2.cmd('aa', (err) => {
r2.cmdj('aflj', (err, res) => {
let total = res.length;
for(let f of res) {
r2.cmdj('pdrj @ ' + f.name, (err, res) => {
if (--total < 1) {
r2.quit();
}
});
}
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment