第一個Java卡應用的除錯
第一個Java卡應用的除錯
在完成除錯配置之後,可以選擇“RUN”,這樣Jcop shell就會產生如下的除錯資訊。
- /term "Remote|localhost:4229"
--Opening terminal
> /card -a a000000003000000 -c
resetCard with timeout: 0 (ms)
--Waiting for card...
ATR=3B FA 13 00 00 81 31 FE 45 4A 43 4F 50 34 31 56 32 32 31 96
ATR: T=1, FI=1/DI=3 (93clk/etu), N=0, IFSC=254, BWI=4/CWI=5, Hist="JCOP41V221"
=> 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00
(911848 nsec)
<= 6F 10 84 08 A0 00 00 00 03 00 00 00 A5 04 9F 65
01 FF 90 00
Status: No Error
cm> set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
cm> init-update 255
=> 80 50 00 00 08 D3 08 AF 4A 31 95 39 2F 00
(1621 usec)
<= 00 00 57 F3 97 D9 7F 72 88 55 FF 02 00 00 3D 02
9C 31 C7 89 98 CD 8C C6 68 87 61 A8 90 00
Status: No Error
cm> ext-auth plain
=> 84 82 00 00 10 16 F5 C8 3C 4E 9B 72 A0 84 D2 01
66 9B E1 25 47
(1381 usec)
<= 90 00
Status: No Error
cm> delete a00000000901
=> 80 E4 00 00 08 4F 06 A0 00 00 00 09 01 00
(611251 nsec)
<= 6A 88
Status: Reference data not found
jcshell: Error code: 6a88 (Reference data not found)
jcshell: Wrong response APDU: 6A88
Ignoring expected error
cm> delete a0000000090102
=> 80 E4 00 00 09 4F 07 A0 00 00 00 09 01 02 00
(684724 nsec)
<= 6A 88
Status: Reference data not found
jcshell: Error code: 6a88 (Reference data not found)
jcshell: Wrong response APDU: 6A88
Ignoring expected error
cm> upload -b 250 "D:\Eclipse_32 Work Place\testproject\bin\testpackage\javacard"
=> 80 E6 02 00 14 07 A0 00 00 00 09 01 02 08 A0 00
00 00 03 00 00 00 00 00 00 00
(1537 usec)
<= 00 90 00
Status: No Error
=> 80 E8 80 00 EF C4 81 EC 01 00 1D DE CA FF ED 02 ................
02 04 00 01 07 A0 00 00 00 09 01 02 0B 74 65 73
74 70 61 63 6B 61 67 65 02 00 21 00 1D 00 21 00 tpackage..!...!.
0A 00 0B 00 1E 00 0E 00 3D 00 0A 00 0B 00 00 00 ........=.......
4D 01 BB 00 00 00 00 00 00 01 01 00 04 00 0B 01 M...............
02 01 07 A0 00 00 00 62 01 01 03 00 0A 01 06 A0 .......b........
00 00 00 09 01 00 08 06 00 0E 00 00 00 80 03 00 ................
FF 00 07 01 00 00 00 1C 07 00 3D 00 01 10 18 8C ..........=.....
00 01 7A 05 30 8F 00 04 3D 8C 00 05 18 1D 04 41 ..z.0...=......A
18 1D 25 8B 00 03 7A 02 21 18 8B 00 02 60 03 7A ..%...z.!....`.z
19 8B 00 00 2D 1A 04 25 73 00 09 00 00 00 00 00 .......
0F 11 6D 00 8D 00 06 7A 08 00 0A 00 00 00 00 00 ..m....z........
00 00 00 00 00 05 00 1E 00 07 03 80 0A 01 06 80 ................
03 00 03 80 03 03 03 80 03 02 01 00 02 00 06 00 ................
00 01 06 80 07 01 09 00 0B 00 00 00 07 05 06 04 ................
0A 07 07 13 00 .....
(9501 usec)
<= 00 90 00 ...
Status: No Error
cm> install -i a00000000901 -q C9#() a0000000090102 a00000000901
=> 80 E6 0C 00 1C 07 A0 00 00 00 09 01 02 06 A0 00
00 00 09 01 06 A0 00 00 00 09 01 01 00 02 C9 00
00 00 ..
(2800 usec)
<= 90 00 ..
Status: No Error
Load report:
239 bytes loaded in 0.0 seconds
effective code size on card:
+ package AID 7
+ applet AIDs 13
+ classes 17
+ methods 64
+ statics 0
+ exports 0
------------------------------
overall 101 bytes
cm> install -i a00000000901 -q C9#() a0000000090102 a00000000901
=> 80 E6 0C 00 1C 07 A0 00 00 00 09 01 02 06 A0 00 ................
00 00 09 01 06 A0 00 00 00 09 01 01 00 02 C9 00 ................
00 00 ..
(2800 usec)
<= 90 00 ..
Status: No Error
相關文章
- PyCharm入門第一步(二):除錯第一個Python應用程式PyCharm除錯Python
- 除錯的第一個Jdon出錯資訊除錯
- 做一個可除錯的Android應用除錯Android
- Java卡應用開發其實並不難(2)-第一個Applet的建立JavaAPP
- 使用 Eclipse 遠端除錯 Java 應用程式Eclipse除錯Java
- PHP CLI應用的除錯原理PHP除錯
- Flutter 應用程式除錯Flutter除錯
- Electron 應用除錯指南除錯
- Windbg在應用層除錯漏洞時的應用除錯
- Java程式設計師應該知道的10個除錯技巧Java程式設計師除錯
- 使用 Eclipse 遠端除錯 Java 應用程式(mark)Eclipse除錯Java
- 第一個Cassandra應用
- 第一個spark應用開發詳解(java版)SparkJava
- Laravel Telescope:優雅的應用除錯工具Laravel除錯
- 加速Java應用開發1:Spring/Hibernate應用除錯時啟動速度JavaSpring除錯
- 【譯】使用 ndb 除錯 node 應用除錯
- 使用Eclipse除錯PHP應用Eclipse除錯PHP
- 如何除錯Android Wear 應用除錯Android
- 應用卡的原因
- 第一個 Angular 應用程式Angular
- Java除錯Java除錯
- Idea進行java應用的遠端除錯Remote debuggingIdeaJava除錯REM
- 使用Eclipse除錯Java程式的10個技巧Eclipse除錯Java
- 使用Eclipse除錯Java 程式的10個技巧Eclipse除錯Java
- Win32除錯API的另類應用Win32除錯API
- .NET應用程式除錯—原理、工具、方法除錯
- .NET應用程式除錯:原理、工具、方法除錯
- 搭建我的第一個Docker應用棧Docker
- 我的第一個Android應用程式Android
- [part 3] 第一個 Django 應用Django
- 第一章 第一個簡單的iOS應用iOS
- 加速Java應用開發速度2:加速專案除錯啟動速度Java除錯
- 你應該瞭解的 5 個 JavaScript 除錯技巧JavaScript除錯
- Android通過Wifi來除錯你的應用AndroidWiFi除錯
- 淺談1——用Eclipse除錯JAVA程式Eclipse除錯Java
- [譯] 用 Flutter 開發你的第一個應用程式Flutter
- 初略講解如何除錯Flutter應用除錯Flutter
- 通過終端除錯 AngularJS 應用除錯AngularJS