From 3922b084d1e977db94c1595c215e59cef0c139ff Mon Sep 17 00:00:00 2001 From: Julius Putra Tanu Setiaji Date: Sun, 18 Feb 2018 08:13:17 +0800 Subject: [PATCH] Flipped knownKey (#1) * Update README.md * Fixed knownKey processing (it was flipped) --- README.md | 11 +++++++++++ miLazyCracker.sh | 5 +++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8d72189..d909543 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,17 @@ cd mydumps miLazyCracker ``` +Possible issue: +```bash +error libnfc.driver.pn53x_usb Unable to set USB configuration (Device or resource busy) +``` +Fix: +```bash +sudo modprobe -r pn533_usb +``` + + + This tool is comprised of work from: - Aram Verstegen (https://github.com/aczid/crypto1_bs) diff --git a/miLazyCracker.sh b/miLazyCracker.sh index 175a313..24b96d7 100755 --- a/miLazyCracker.sh +++ b/miLazyCracker.sh @@ -73,8 +73,9 @@ while [ $keepTrying -eq 1 ]; do #echo ${arr[2]} #echo ${arr[3]} #echo ${arr[4]} - - knownKey=${arr[0]} + + temp=($(echo ${arr[0]}|fold -w2)) + knownKey=${temp[5]}${temp[4]}${temp[3]}${temp[2]}${temp[1]}${temp[0]} knownSectorNum=${arr[1]} knownKeyLetter=${arr[2]} unknownSectorNum=${arr[3]}