eod monday

This commit is contained in:
George Hotz 2014-07-14 18:32:01 -07:00
parent cb20bf8aa4
commit 8809b442a2
4 changed files with 10 additions and 8 deletions

BIN
tests/ctf/pctf/harry_potter Executable file

Binary file not shown.

View File

@ -1,5 +1,12 @@
function p(a) { console.log(a); }
pmaps = {}
function get_data_type(v) {
var a = pmaps[v - v%0x1000];
if (a === undefined) return "";
else return "data"+a;
}
function hex(a) {
if (a == undefined) {
return "";

View File

@ -17,7 +17,9 @@ function do_ida_socket(callme) {
}
if (dat[0] == "setdaddr") {
var daddr = parseInt(dat[1])
update_dview(daddr);
if (get_data_type(daddr) != "datainstruction") {
update_dview(daddr);
}
}
};
} else {

View File

@ -4,7 +4,6 @@ stream.on('maxclnum', function(msg) {
update_maxclnum(msg);
});
pmaps = {}
stream.on('pmaps', function(msg) {
pmaps = msg
});
@ -19,12 +18,6 @@ Meteor.startup(function() {
});
});
function get_data_type(v) {
var a = pmaps[v - v%0x1000];
if (a === undefined) return "";
else return "data"+a;
}
var PTRSIZE = 4;
stream.on('memory', function(msg) {