Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro at the execution #2

Open
Corallo opened this issue Sep 8, 2018 · 2 comments
Open

Erro at the execution #2

Corallo opened this issue Sep 8, 2018 · 2 comments

Comments

@Corallo
Copy link

Corallo commented Sep 8, 2018

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?

@ghost
Copy link

ghost commented Sep 16, 2018

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

@Corallo
Copy link
Author

Corallo commented Sep 18, 2018

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: ''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant