`

JCOP javacard1

 
阅读更多
-  /term "Remote|localhost:4612"
>  /card -a a000000003000000 -c com.ibm.jc.CardManager
ATR: 3BE900008131FE454A434F503431563232A7
ATR: T=1, N=0, IFSC=254, BWI=4/CWI=5, Hist="JCOP41V22"
cm>  set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
cm>  init-update 255
cm>  ext-auth plain
cm>  delete a00000000987
jcshell: Error code: 6a88 (Reference data not found)
jcshell: Wrong response APDU: 6A88
Ignoring expected error
cm>  delete a0000000010988
jcshell: Error code: 6a88 (Reference data not found)
jcshell: Wrong response APDU: 6A88
Ignoring expected error
cm>  upload "D:\jancky\workspace_WS\EPurse\bin\epurse\javacard\epurse.cap"
cm>  install -i a00000000987  -q C9#() a0000000010988 a00000000987
cm>  card-info

Card Manager AID   :  A000000003000000
Card Manager state :  OP_READY

    Application:  SELECTABLE (--------) A00000000987   
    Load File  :      LOADED (--------) A0000000035350   (Security Domain)
     Module    :                        A000000003535041
    Load File  :      LOADED (--------) A0000000010988 
     Module    :                        A00000000987
cm>  help
List of currently active commands:
  store-data   
/exec          ?               make-selectable     store-keyset 
/expr          auth            personalize         unblock-pin  
/glob          begin-RMAC      print-key           upload       
/identify      card-info       put-data           
/list-vars     change-pin      put-key            
cm>  select //aid/a00000000987
cm>  send 0xA0 0xB0 0x00 0x00 0x00 0x02;
jcshell: send: Illegal hex digits at pos: 1
cm>  send 0xA0 0xB0 0x00 0x00 0x00 0x02
jcshell: send: Illegal hex digits at pos: 1
cm>  send A0B000000002
=> A0 B0 00 00 00 02                                  ......
(382612 nsec)
<= 6E 00                                              n.
Status: CLA value not supported
cm>  send A0B000000002;
jcshell: send: Odd number of hex digits at pos: 13
cm>  send A0B000000002
=> A0 B0 00 00 00 02                                  ......
(298568 nsec)
<= 6E 00                                              n.
Status: CLA value not supported
cm>  select A00000000987
cm>  /card -a a000000003000000 -c com.ibm.jc.CardManager
ATR: 3BE900008131FE454A434F503431563232A7
ATR: T=1, N=0, IFSC=254, BWI=4/CWI=5, Hist="JCOP41V22"
cm>  set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
cm>  init-update 255
cm>  ext-auth plain
cm>  send A0B000000002
=> A0 B0 00 00 00 02                                  ......
(292651 nsec)
<= 6E 00                                              n.
Status: CLA value not supported
cm>  install -i a00000000987 -q C9#() a0000000010988 a00000000987
jcshell: Error code: 6985 (Conditions of use not satisfied)
jcshell: Wrong response APDU: 6985
cm>  /terminal "Remote|localhost:4612"
>  /card -a a000000003000000 -c com.ibm.jc.CardManager
ATR: 3BE900008131FE454A434F503431563232A7
ATR: T=1, N=0, IFSC=254, BWI=4/CWI=5, Hist="JCOP41V22"
cm>  set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
cm>  init-update 255
cm>  ext-auth plain
cm>  A0
jcshell: No such command: A0
cm>  send A0B000000002
=> A0 B0 00 00 00 02                                  ......
(390559 nsec)
<= 6E 00                                              n.
Status: CLA value not supported
cm>  send B0B000000002
=> B0 B0 00 00 00 02                                  ......
(327193 nsec)
<= 6E 00                                              n.
Status: CLA value not supported
cm>  00A4040006A000000009877F
jcshell: No such command: 00A4040006A000000009877F
cm>  send 00A4040006A000000009877F
=> 00 A4 04 00 06 A0 00 00 00 09 87 7F                ............
(249932 nsec)
<= 90 00                                              ..
Status: No Error
cm>  send A0B000000002
=> A0 B0 00 00 00 02                                  ......
(243276 nsec)
<= 00 00 90 00                                        ....
Status: No Error

-----------------------------------
先要 cm>  send 00A4040006A000000009877F    
Select 一个 applet 再去下面的命令
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics