forked from AdamLaurie/RFIDIOt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jcop_mifare_access.gpsh
20 lines (20 loc) · 973 Bytes
/
jcop_mifare_access.gpsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// script to install jcop_mifare_access.cap to jcop card using gpshell (http://sourceforge.net/projects/globalplatform/)
mode_211
//enable_trace
establish_context
// edit the following line to match your PCSC reader
//card_connect -reader "OMNIKEY CardMan 5x21 00 01"
//card_connect -reader "OMNIKEY CardMan 5x21 (USB iClass Reader) 00 01"
//card_connect -reader "PCSC OMNIKEY CardMan 5x21 (OKCM0071403091502571040243996509) 00 01"
//card_connect -reader "SDI010 USB Smart Card Reader (21120652200170) 00 01"
//card_connect -reader "OMNIKEY CardMan 5x21 (USB iClass Reader) 00 01"
card_connect
//card_connect -readerNumber 3
select -AID A000000003000000
open_sc -security 3 -mac_key 404142434445464748494A4B4C4D4E4F -enc_key 404142434445464748494A4B4C4D4E4F -kek_key 404142434445464748494A4B4C4D4E4F // Open secure channel
delete -AID A00000024710
delete -AID DC44200606
install -file jcop_mifare_access.cap -priv 4
get_status -element 10
card_disconnect
release_context