Skip to content

Instantly share code, notes, and snippets.

@radare
Created February 5, 2017 01:15
Show Gist options
  • Save radare/3bb3a15f9209df7bf3127e1bcb700c85 to your computer and use it in GitHub Desktop.
Save radare/3bb3a15f9209df7bf3127e1bcb700c85 to your computer and use it in GitHub Desktop.
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