SideChannelMarvels / Deadpool

Repository of various public white-box cryptographic implementations and their practical attacks.
GNU General Public License v3.0
636 stars 119 forks source link

Problem executing scripts #6

Closed mercury501 closed 5 years ago

mercury501 commented 7 years ago

Hi, I tried with some examples and writing a little script myself using deadpool_dca.py but every time I run it it outputs this: `>>> from deadpool_dca import *

T=TracerGrind('whitebox') T.run(1) Traceback (most recent call last): File "", line 1, in File "deadpool_dca.py", line 300, in run oblock=self.get_trace(i, iblock) File "deadpool_dca.py", line 460, in get_trace output=self._exec(cmd_list, input_stdin) File "deadpool_dca.py", line 312, in _exec proc = subprocess.Popen(cmd_list, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 390, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory`

I installed tracegrind and it works, i can trace, convert the trace and visualize it with tracegraph but can't seem to make this work.

doegox commented 7 years ago

try with './whitebox' try also to run it once with debug=True in the params (it can't run always in debug mode but at least you get a chance to see the command line it tries to execute) T=TracerGrind('./whitebox', debug=True)

LimitedResults commented 5 years ago

My solution, open a shell then type: sudo cp /usr/bin/valgrind /usr/local/bin/.

then, it works like a charm. Very nice tool by the way!