diff --git a/README.md b/README.md index d909543..4035d9f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,13 @@ Mifare Classic Plus - Hardnested Attack Implementation for LibNFC USB readers (SCL3711, ASK LoGO, etc) Installation: + +Installation used to be very easy but the original CraptEV1 / Crapto1 source packages are not made available anymore by their author, therefore you've to find a copy of these two packages by yourself +because redistribution of CraptEV1 is not allowed by its license. + ```bash +# wget http://crapto1.netgarage.org/craptev1-v1.1.tar.xz +# wget http://crapto1.netgarage.org/crapto1-v3.3.tar.xz ./miLazyCrackerFreshInstall.sh ``` diff --git a/crypto1_bs.diff b/crypto1_bs.diff index f385858..bd6b949 100644 --- a/crypto1_bs.diff +++ b/crypto1_bs.diff @@ -1,8 +1,8 @@ diff --git a/libnfc_crypto1_crack.c b/libnfc_crypto1_crack.c -index 8a53f64..21feed2 100644 +index 2015dcb..0fa7436 100755 --- a/libnfc_crypto1_crack.c +++ b/libnfc_crypto1_crack.c -@@ -713,6 +713,17 @@ int main (int argc, const char * argv[]) { +@@ -730,6 +730,17 @@ int main (int argc, const char * argv[]) { return 1; } else { printf("Found key: %012"PRIx64"\n", found_key); @@ -18,5 +18,5 @@ index 8a53f64..21feed2 100644 + } + } } - printf("Tested %zu states\n", total_states_tested); + printf("Tested %"llu" states\n", total_states_tested); diff --git a/miLazyCrackerFreshInstall.sh b/miLazyCrackerFreshInstall.sh index 54cc1f3..41f19b0 100755 --- a/miLazyCrackerFreshInstall.sh +++ b/miLazyCrackerFreshInstall.sh @@ -1,5 +1,10 @@ #!/bin/bash +if [ ! -f craptev1-v1.1.tar.xz ] || [ ! -f crapto1-v3.3.tar.xz ]; then + echo "I need craptev1-v1.1.tar.xz and crapto1-v3.3.tar.xz. Aborting." + exit 1 +fi + set -x # run this from inside miLazyCracker git repo @@ -25,10 +30,11 @@ sudo apt-get install git libnfc-bin autoconf libnfc-dev cd crypto1_bs || exit 1 git reset --hard git clean -dfx - # patch initially done against commit 957702be: + # patch initially done against commit 89de1ba5: patch -p1 < ../crypto1_bs.diff - make get_craptev1 - make get_crapto1 + tar Jxvf ../craptev1-v1.1.tar.xz + mkdir crapto1-v3.3 + tar Jxvf ../crapto1-v3.3.tar.xz -C crapto1-v3.3 make sudo cp -a libnfc_crypto1_crack /usr/local/bin )