aczid / crypto1_bs

Bitsliced Crypto-1 brute-forcer
200 stars 78 forks source link

illegal instruction (core dumped) error when running without AVX. #42

Closed draand28 closed 4 years ago

draand28 commented 4 years ago

The tool doesn't work on older CPUs without AVX support. It always gives me this error: illegal instruction (core dumped) after collecting nonces. The CPUs I use do support SSE/SSE2 and SSSE3/SSE4_1/SSE4_2. Do I need to run a custom command in order to use SSE instruction set? The command I run is: ./libnfc_crypto1_crack c1e51c63b8f5 4 A 60 B.

aczid commented 4 years ago

Hi, the first few lines of the Makefile try to help you with this issue.

# if -march=native does not work on your platform, you could try
# -msse
# -msse2
# -mavx
# or
# -mavx2

Just try some of these options for the CFLAGS line in the Makefile to get it to build correctly on your machine.

draand28 commented 4 years ago

Thank you! I used -msse2 and it fixed my problem.