We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0d7bf8 commit 20d386cCopy full SHA for 20d386c
plugins/bap/plugins/bap_taint.py
@@ -27,15 +27,18 @@
27
('taints', 'yellow')
28
]
29
30
-
31
class PropagateTaint(BapIda):
+ ENGINE='primus'
32
+
33
"Propagate taint information using BAP"
34
def __init__(self, addr, kind):
35
super(PropagateTaint,self).__init__()
36
37
self.action = 'taint propagating from {:s}0x{:X}'.format(
38
'*' if kind == 'ptr' else '',
39
addr)
- self.passes = ['taint','propagate-taint','map-terms','emit-ida-script']
40
+ propagate = 'run' if self.ENGINE == 'primus' else 'propagate-taint'
41
+ self.passes = ['taint', propagate, 'map-terms','emit-ida-script']
42
self.script = self.tmpfile('py')
43
scheme = self.tmpfile('scm')
44
for (pat,color) in patterns:
@@ -50,6 +53,12 @@ def __init__(self, addr, kind):
50
53
'--emit-ida-script-file', self.script.name
51
54
52
55
56
+ if self.ENGINE == 'primus':
57
+ self.args += [
58
+ '--primus-propagate-taint-run',
59
+ '--primus-promiscuous-mode',
60
+ '--primus-greedy-scheduler'
61
+ ]
62
63
64
class BapTaint(idaapi.plugin_t):
0 commit comments