lf em 410x clone now allows for all zeros card number. Thanks to Amal for reminding me about it

This commit is contained in:
iceman1001 2024-02-09 08:44:21 +01:00
commit 521791dbb7
3 changed files with 1 additions and 7 deletions

View file

@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log...
## [unreleased][unreleased]
- Changed `lf em 410x` - now allows for card number zero. thanks @dangerousthings ! (@iceman1001)
- Changed `liblua` - now bugfixes applied and current version is v.5.2.4 (@iceman1001)
- Changed `lf em 4x50 dump --ns` - now supports the nosave flag (@iceman1001)
- Added `lf em 4x50 view` - view on Em4x50 dump files (@iceman1001)

View file

@ -512,9 +512,6 @@ static int getUID(bool verbose, bool loop, uint8_t *buf) {
bool readHF15Uid(bool loop, bool verbose) {
uint8_t uid[HF15_UID_LENGTH] = {0};
if (getUID(verbose, loop, uid) != PM3_SUCCESS) {
if (verbose) {
PrintAndLogEx(WARNING, "no tag found");
}
return false;
}
return true;

View file

@ -685,10 +685,6 @@ static int CmdEM410xClone(const char *Cmd) {
CLIParserFree(ctx);
uint64_t id = bytes_to_num(uid, uid_len);
if (id == 0) {
PrintAndLogEx(ERR, "Cardnumber can't be zero");
return PM3_EINVARG;
}
if (q5 && em) {
PrintAndLogEx(FAILED, "Can't specify both Q5 and EM4305 at the same time");