Skip to content

Commit

Permalink
Flipped knownKey (#1)
Browse files Browse the repository at this point in the history
* Update README.md

* Fixed knownKey processing (it was flipped)
  • Loading branch information
indocomsoft authored and neomilium committed Feb 18, 2018
1 parent 137680a commit 3922b08
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
5 changes: 3 additions & 2 deletions miLazyCracker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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]}
Expand Down

0 comments on commit 3922b08

Please sign in to comment.