gdb.js
v0.1.6
Published
Control the gdb debugger from your node script
Downloads
6
Maintainers
Readme
== author == @sha0coder sha0//badchecksum.net
== api ==
gdb.init(binary, function(){});
gdb.cmd(gdb_command, function(out){});
gdb.enableDebug();
gdb.getRegs(function(regs){});
gdb.setRegs(regs);
gdb.setBP(name_or_addr, function(success){});
gdb.getBPs(function(bps_arr){});
gdb.getEntry(function(addr){});
gdb.displayIntel();
gdb.patch(addr,byte_array);
gdb.patchStr(addr,str);
gdb.patchNOP(addr);
gdb.find(addr,size_space,casted_data, function(addrs_arr) {});
gdb.findStr(addr,size_space,str, function(addrs_arr) {});
== usge ==
var gdb = require('gdb.js').gdb;
// first load a file and init buffers
gdb.init('/bin/bash', function() {
// ready for using gdb.js
// sending a command to gdb
gdb.cmd('r',function(out) {
// out has the result for the command
});
});