Skip to content

Commit

Permalink
Undo changes, want to compare with Zhenghao's pri_taint
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewQuijano committed Nov 30, 2024
1 parent bd10b65 commit 1a6a151
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions panda/plugins/pri_taint/pri_taint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ extern "C" {
#include "panda/rr/rr_log.h"
#include "panda/plog.h"

#include "taint2/taint2_hypercalls.h"

#include "pri/pri_types.h"
#include "pri/pri_ext.h"
#include "pri/pri.h"
Expand All @@ -31,7 +33,6 @@ extern "C" {

// taint
#include "taint2/taint2_ext.h"
#include "taint2/taint2_hypercalls.h"

bool init_plugin(void *);
void uninit_plugin(void *);
Expand Down Expand Up @@ -308,15 +309,11 @@ bool i386_hypercall_callback(CPUState *cpu){
info.filename,
info.line_number,pc);
pri_funct_livevar_iter(cpu, pc, (liveVarCB) pfun, (void *)&args);
//pri_all_livevar_iter(cpu, pc, (liveVarCB) pfun, (void *)&args);
//lava_attack_point(phs);
}
ret = true;
}
/*
else if (phs.action == 12) {
// it's an attack point sighting
lava_attack_point(phs);
}
*/
ret = true;
}
else {
printf ("Invalid magic value in PHS struct: %x != 0xabcd.\n", phs.magic);
Expand Down Expand Up @@ -360,7 +357,6 @@ bool init_plugin(void *self) {
hypercall_taint = panda_parse_bool_opt(args, "hypercall", "Register tainting on a panda hypercall callback");
linechange_taint = panda_parse_bool_opt(args, "linechange", "Register tainting on every line change in the source code (default)");
chaff_bugs = panda_parse_bool_opt(args, "chaff", "Record untainted extents for chaff bugs.");
debug = panda_parse_bool_opt(args, "debug", "enable debug output");
// default linechange_taint to true if there is no hypercall taint
if (!hypercall_taint)
linechange_taint = true;
Expand Down

0 comments on commit 1a6a151

Please sign in to comment.