Chapter 14. Smart card(智能卡)
Table of Contents
14.1. USB Token 14.1.1. Open[F]irst 14.1.2. [S]oPin 验证管理员 14.1.3. LED 灯控制 14.1.4. [L]ist 14.1.5. File[M]enu 文件菜单 14.1.5.1. [L]ist 列目录与文件 14.1.5.2. 目录管理 14.1.5.3. 文件管理 14.1.5.4. Create[A]pp 创建GUID 14.1.6. Set[u]pMenu 设置菜单 14.1.6.1. 修改pin 14.1.6.2. [T]okenName 修改Token名字 14.1.6.3. [C]leanup 14.1.6.4. [U]lockPIN 14.1.6.5. [A]ccessSettings 14.1.6.6. [I]nitToken 初始化14.1. USB Token
USB Key
以 ePass1000ND 为例:
Feitian ePass1000ND Editor v 1.0.7.412
Create at Jun 19 2009, 16:23:26
Library version 1.1.0
Create Context:Success!
http://netkiller.github.io/
Main Menu:
-------------------------------------------------------------
Open[F]irst LED[O]n [P]in [L]ist File[M]enu
Open[N]ext LE[D]Off [S]oPin [G]enRandom Cr[y]ptMenu
[R]eOpen Rese[t] [A]ccess Set[u]pMenu
[C]lose E[x]it
Input selection:
14.1.1. Open[F]irst
Input selection:f
Open device:Success!
=>> Firmware Version: 1.07
=>> Product Code: 10
=>> Capabilities: 3
=>> Total memory size: 8192 bytes
=>> Free memory space: 7592 bytes
=>> Max directory levels: 2
=>> File system type: 1
=>> Friendly token name: ePass1000ND
=>> Hardware serial number: 0x42F81BC1B4B3CDD3
Main Menu:
-------------------------------------------------------------
Open[F]irst LED[O]n [P]in [L]ist File[M]enu
Open[N]ext LE[D]Off [S]oPin [G]enRandom Cr[y]ptMenu
[R]eOpen Rese[t] [A]ccess Set[u]pMenu
[C]lose E[x]it
14.1.2. [S]oPin 验证管理员
Input selection:s
Input SO-Pin:
http://netkiller.github.io/
14.1.3. LED 灯控制
开灯
Input selection:o
Turn LED on:Success!
Main Menu:
-------------------------------------------------------------
Open[F]irst LED[O]n [P]in [L]ist File[M]enu
Open[N]ext LE[D]Off [S]oPin [G]enRandom Cr[y]ptMenu
[R]eOpen Rese[t] [A]ccess Set[u]pMenu
[C]lose E[x]it
关灯
Input selection:d
Turn LED off:Success!
Main Menu:
-------------------------------------------------------------
Open[F]irst LED[O]n [P]in [L]ist File[M]enu
Open[N]ext LE[D]Off [S]oPin [G]enRandom Cr[y]ptMenu
[R]eOpen Rese[t] [A]ccess Set[u]pMenu
[C]lose E[x]it
14.1.4. [L]ist
Input selection:l
DirID FileID Type Read Write Delete Crypt Size
----- ----- ---- ----- ----- ------ ----- -----
0000 FFFF DATA ANYONE ANYONE ANYONE ANYONE 512
0000 FFFE DATA ANYONE ANYONE ANYONE ANYONE 32
0000 0000 FREE ANYONE ANYONE ANYONE ANYONE 7592
Main Menu:
-------------------------------------------------------------
Open[F]irst LED[O]n [P]in [L]ist File[M]enu
Open[N]ext LE[D]Off [S]oPin [G]enRandom Cr[y]ptMenu
[R]eOpen Rese[t] [A]ccess Set[u]pMenu
[C]lose E[x]it
http://netkiller.github.io/
14.1.5. File[M]enu 文件菜单
Input selection:m
File Menu:
-------------------------------------------------------------
C[h]Dir [L]ist Create[D]ir Create[F]ile Create[A]pp
DelD[i]r D[e]leteFile
[O]pen [R]ead [W]rite [C]lose
Cr[y]ptMenu Set[u]pMenu E[x]it
14.1.5.1. [L]ist 列目录与文件
Input selection:l
DirID FileID Type Read Write Delete Crypt Size
----- ----- ---- ----- ----- ------ ----- -----
0000 FFFF DATA ANYONE ANYONE ANYONE ANYONE 512
0000 FFFE DATA ANYONE ANYONE ANYONE ANYONE 32
0000 0000 FREE ANYONE ANYONE ANYONE ANYONE 7592
Main Menu:
-------------------------------------------------------------
Open[F]irst LED[O]n [P]in [L]ist File[M]enu
Open[N]ext LE[D]Off [S]oPin [G]enRandom Cr[y]ptMenu
[R]eOpen Rese[t] [A]ccess Set[u]pMenu
[C]lose E[x]it
14.1.5.2. 目录管理
14.1.5.2.1. 创建目录http://netkiller.github.io/
Create[D]ir
Input selection:d
Input ID of the Dir to be created(0-FFFF):1122
Success!
File Menu:
-------------------------------------------------------------
C[h]Dir [L]ist Create[D]ir Create[F]ile Create[A]pp
DelD[i]r D[e]leteFile
[O]pen [R]ead [W]rite [C]lose
Cr[y]ptMenu Set[u]pMenu E[x]it
查看是否成功http://netkiller.github.io/
Input selection:l
DirID FileID Type Read Write Delete Crypt Size
----- ----- ---- ----- ----- ------ ----- -----
0000 FFFF DATA ANYONE ANYONE ANYONE ANYONE 512
0000 FFFE DATA ANYONE ANYONE ANYONE ANYONE 32
0000 1122 DIR NONE NONE ANYONE NONE 0
0000 0000 FREE ANYONE ANYONE ANYONE ANYONE 7584
File Menu:
-------------------------------------------------------------
C[h]Dir [L]ist Create[D]ir Create[F]ile Create[A]pp
DelD[i]r D[e]leteFile
[O]pen [R]ead [W]rite [C]lose
Cr[y]ptMenu Set[u]pMenu E[x]it
如果正确我们可以看到 0000 1122 DIR NONE NONE ANYONE NONE 0
14.1.5.2.2. C[h]Dir 进入目录
Input selection:h
Input ID of the dir to change in(0-FFFF):1122
Success!
File Menu:
-------------------------------------------------------------
C[h]Dir [L]ist Create[D]ir Create[F]ile Create[A]pp
DelD[i]r D[e]leteFile
[O]pen [R]ead [W]rite [C]lose
Cr[y]ptMenu Set[u]pMenu E[x]it
14.1.5.2.3. 删除目录 DelD[i]r
Input selection:i
Input ID of the Dir to delete(0-FFFF):1122
Success!
http://netkiller.github.io/
File Menu:
-------------------------------------------------------------
C[h]Dir [L]ist Create[D]ir Create[F]ile Create[A]pp
DelD[i]r D[e]leteFile
[O]pen [R]ead [W]rite [C]lose
Cr[y]ptMenu Set[u]pMenu E[x]it
确认是否删除成功
Input selection:l
DirID FileID Type Read Write Delete Crypt Size
----- ----- ---- ----- ----- ------ ----- -----
0000 FFFF DATA ANYONE ANYONE ANYONE ANYONE 512
0000 FFFE DATA ANYONE ANYONE ANYONE ANYONE 32
0000 0000 FREE ANYONE ANYONE ANYONE ANYONE 7592
File Menu:
-------------------------------------------------------------
C[h]Dir [L]ist Create[D]ir Create[F]ile Create[A]pp
DelD[i]r D[e]leteFile
[O]pen [R]ead [W]rite [C]lose
Cr[y]ptMenu Set[u]pMenu E[x]it
14.1.5.3. 文件管理http://netkiller.github.io/
14.1.5.3.1. Create[F]ile 创建文件
创建 MD5 文件
Input selection:f
Input ID of the file to be created(0-FFFF): 0011
Input file type(2=DATA,4=MD5,8=TEA): 4
Input write access (0=Anyone 1=User 2=SO 7=None): 0
Input crypt access (0=Anyone 1=User 2=SO 7=None): 0
Success!
[L]ist 查看文件是否创建
Input selection:l
DirID FileID Type Read Write Delete Crypt Size
----- ----- ---- ----- ----- ------ ----- -----
0000 FFFF DATA ANYONE ANYONE ANYONE ANYONE 512
0000 FFFE DATA ANYONE ANYONE ANYONE ANYONE 32
0000 0011 MD5 NONE ANYONE ANYONE ANYONE 16
0000 0000 FREE ANYONE ANYONE ANYONE ANYONE 7568
创建 TEA 文件http://netkiller.github.io/
Input selection:f
Input ID of the file to be created(0-FFFF): 0022
Input file type(2=DATA,4=MD5,8=TEA): 8
Input write access (0=Anyone 1=User 2=SO 7=None): 0
Input crypt access (0=Anyone 1=User 2=SO 7=None): 0
Success!
查看文件是否正确创建
Input selection:l
DirID FileID Type Read Write Delete Crypt Size
----- ----- ---- ----- ----- ------ ----- -----
0000 FFFF DATA ANYONE ANYONE ANYONE ANYONE 512
0000 FFFE DATA ANYONE ANYONE ANYONE ANYONE 32
0000 0011 MD5 NONE ANYONE ANYONE ANYONE 16
0000 0022 TEA NONE ANYONE ANYONE ANYONE 16
0000 0000 FREE ANYONE ANYONE ANYONE ANYONE 7544
14.1.5.3.2. [O]pen 打开文件http://netkiller.github.io/
Input selection:o
Input ID of the file to open(0-FFFF):0011
Success!
File size: 16
File type: MD5
File Crypt Access: ANYONE
File Read Access: NONE
File Write Access: ANYONE
File Delete Access: ANYONE
14.1.5.3.3. D[e]leteFile 删除文件
Input selection:e
Input ID of the file to delete(0-FFFF):0022
Success!
查看删除结果http://netkiller.github.io/
Input selection:l
DirID FileID Type Read Write Delete Crypt Size
----- ----- ---- ----- ----- ------ ----- -----
0000 FFFF DATA ANYONE ANYONE ANYONE ANYONE 512
0000 FFFE DATA ANYONE ANYONE ANYONE ANYONE 32
0000 0011 MD5 NONE ANYONE ANYONE ANYONE 16
0000 F000 DIR NONE NONE ANYONE NONE 0
Name: "a360d5826bdee7e6bd04a428eefc0bba"
0000 0000 FREE ANYONE ANYONE ANYONE ANYONE 7560
14.1.5.4. Create[A]pp 创建GUID
Input selection:a
Input App Name of the Dir(0-32chars):a360d5826bdee7e6bd04a428eefc0bba
Input GUID of the Dir{xxxx-xxxx...}:5744e586-cc37-11e3-945f-00259035906c
Success!
查看创建情况http://netkiller.github.io/
DirID FileID Type Read Write Delete Crypt Size
----- ----- ---- ----- ----- ------ ----- -----
0000 FFFF DATA ANYONE ANYONE ANYONE ANYONE 512
0000 FFFE DATA ANYONE ANYONE ANYONE ANYONE 32
0000 0011 MD5 NONE ANYONE ANYONE ANYONE 16
0000 0022 TEA NONE ANYONE ANYONE ANYONE 16
0000 F000 DIR NONE NONE ANYONE NONE 0
Name: "a360d5826bdee7e6bd04a428eefc0bba"
0000 0000 FREE ANYONE ANYONE ANYONE ANYONE 7536
14.1.6. Set[u]pMenu 设置菜单
14.1.6.1. 修改pin
[P]IN 修改用户pin
Input selection:p
Change User Pin
Input Old User Pin:12345678
Input new User Pin:87654321
[S]oPIN 修改管理员pin
14.1.6.2. [T]okenName 修改Token名字
Input selection:t
Input new Token Name:Netkiller
Success!
E[x]it 推出然后使用Open[F]irst查看
Input selection:f
Open device:Success!
=>> Firmware Version: 1.07
=>> Product Code: 10
=>> Capabilities: 3
=>> Total memory size: 8192 bytes
=>> Free memory space: 7512 bytes
=>> Max directory levels: 2
=>> File system type: 1
=>> Friendly token name: Netkiller
=>> Hardware serial number: 0x42F81BC1B4B3CDD3
14.1.6.3. [C]leanup
清空文件,目录等等
http://netkiller.github.io/
14.1.6.4. [U]lockPIN
14.1.6.5. [A]ccessSettings
14.1.6.6. [I]nitToken 初始化
首次使用,请初始化