pintool
pintool copied to clipboard
Erro at the execution
Hi, when i run your script with python pintool.py -l 30 -c 1,2,3 -b _{} -s - baleful
i get this error:
Unexpected error: <class 'subprocess.CalledProcessError'> Traceback (most recent call last): File "pintool.py", line 216, in <module> password = solve(initpass,passlen,symbfill,charset,expression) File "pintool.py", line 128, in solve inscount = pin(password) File "pintool.py", line 75, in pin output = subprocess.check_output(command,shell=True,stderr=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 223, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command 'echo -----------------------------\------------------------------- | /home/hacker/pintool/profiling-tool/a3/pin-2.14-67254-gcc.4.4.7-linux/pin -t /home/hacker/pintool/profiling-tool/a3/pin-2.14-67254-gcc.4.4.7-linux/source/tools/ManualExamples/obj-ia32/inscount0.so -- ./baleful ; cat
can you tell me where the problem is?
You have to build pin and configure the path inside pintool.py as instructed in the README.md
To build pin, extract the tarball, cd into the directory and :
cd source/tools/ManualExamples
make obj-intel64/inscount0.so
make obj-ia32/inscount0.so TARGET=ia32
# And change the path inside pintool.py
I think I did something wrong installing pin.
I erased everything and did it again, following your instruction and now the error has changed in:
Traceback (most recent call last): File "pintool.py", line 217, in <module> password = solve(initpass,passlen,symbfill,charset,expression) File "pintool.py", line 129, in solve inscount = pin(password) File "pintool.py", line 83, in pin return int(''.join(output)) ValueError: invalid literal for int() with base 10: ''