mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-21 13:53:26 -07:00
fix: crapto3.3 sometimes crashing with hf mf mifare on Fudan clones (no par, all NACK) (#233)
added readme.txt again in tools/nonce2key
This commit is contained in:
parent
02069dbbdb
commit
de867f502f
6 changed files with 16 additions and 18 deletions
|
@ -14,7 +14,7 @@ all: $(OBJS) $(EXES)
|
|||
%.o : %.c
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
% : %.c
|
||||
% : %.c $(OBJS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $<
|
||||
|
||||
clean:
|
||||
|
|
|
@ -47,7 +47,7 @@ int main(const int argc, const char* argv[]) {
|
|||
printf("%01x|\n",par[i][7]);
|
||||
}
|
||||
|
||||
state = lfsr_common_prefix(nr,rr,ks3x,par);
|
||||
state = lfsr_common_prefix(nr,rr,ks3x,par,0);
|
||||
lfsr_rollback_word(state,uid^nt,0);
|
||||
crypto1_get_lfsr(state,&key_recovered);
|
||||
printf("\nkey recovered: %012" PRIx64 "\n\n",key_recovered);
|
||||
|
|
7
tools/nonce2key/readme.txt
Normal file
7
tools/nonce2key/readme.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
To test the nonce2key tool.
|
||||
|
||||
:: tip
|
||||
You can use the output from "hf mf mifare" to use with this tool.
|
||||
|
||||
:: sample
|
||||
./nonce2key e9cadd9c a8bf4a12 a020a8285858b090 050f010607060e07
|
Loading…
Add table
Add a link
Reference in a new issue