mirror of
https://github.com/RfidResearchGroup/miLazyCracker.git
synced 2026-05-12 11:20:09 -07:00
Update to latest crypto1_bs
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
|
||||
+3
-3
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user