File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 49
49
print ' AID <AID|"ALL"|"ANY"> Select ISO 7816 AID'
50
50
print ' AIDS List well known AIDs'
51
51
print ' APDU <CLA> <INS> <P1> <P2> <LC> <DATA> <LE> Send raw ISO 7816 APDU (use "" for empty elements)'
52
+ print ' CHANGE <MESSAGE> Print message and wait for TAG to change'
52
53
print ' FILE <"A|H"> <ASCII|HEX> Select ISO 7816 FILE'
53
54
print ' HSS <SPEED> High Speed Select TAG. SPEED values are:'
54
55
print ' 1 == 106 kBaud'
70
71
print ' PROMPT <MESSAGE> Print message and wait for Y/N answer (exit if N)'
71
72
print ' SCRIPT <FILE> Read commands from FILE (see script.txt for example)'
72
73
print ' SELECT Select TAG'
73
- print ' WAIT <MESSAGE> Print message and wait for TAG to change '
74
+ print ' WAIT <MESSAGE> Print message and wait for TAG'
74
75
print
75
76
print ' Commands will be executed sequentially and must be combined as appropriate.'
76
77
print ' Block numbers must be specified in HEX.'
157
158
else :
158
159
print ' Failed: ' + card .ISO7816ErrorCodes [card .errorcode ]
159
160
continue
161
+ if command == 'CHANGE' :
162
+ message = args .pop ()
163
+ print
164
+ current = card .uid
165
+ card .waitfortag (message )
166
+ while card .uid == current or card .uid == '' :
167
+ card .waitfortag ('' )
168
+ print
169
+ continue
160
170
if command == 'FILE' :
161
171
mode = args .pop ().upper ()
162
172
if mode == 'A' :
490
500
print
491
501
current = card .uid
492
502
card .waitfortag (message )
493
- while card .uid == current or card .uid == '' :
494
- card .waitfortag ('' )
495
503
print
496
504
continue
497
505
print
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ mf key a 112233445566 mf auth a 0
11
11
#mf write 0 mifare.dat
12
12
# blank lines are ignored
13
13
14
- prompt 'Continue (Y/N)?'
15
14
mf dump 0 3
16
- wait 'Waiting for you to change TAG!'
15
+ prompt 'Remove TAG and continue (Y/N)?'
16
+ wait 'Place a TAG on reader...' identify change 'Now provide a different TAG...' identify
17
17
select
18
18
select # comments are allowed on end of lines
19
19
You can’t perform that action at this time.
0 commit comments