知乎專欄 | 多維度架構 | 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者” |
以 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! 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:
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
開燈
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
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
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
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
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
查看是否成功
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
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
Input selection:i Input ID of the Dir to delete(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
確認是否刪除成功
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
創建 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 檔案
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
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
Input selection:e Input ID of the file to delete(0-FFFF):0022 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 F000 DIR NONE NONE ANYONE NONE 0 Name: "a360d5826bdee7e6bd04a428eefc0bba" 0000 0000 FREE ANYONE ANYONE ANYONE ANYONE 7560
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!
查看創建情況
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
[P]IN 修改用戶pin
Input selection:p Change User Pin Input Old User Pin:12345678 Input new User Pin:87654321
[S]oPIN 修改管理員pin
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
# dmesg | grep usb usb 5-1: USB disconnect, device number 5 usb 5-1: new low speed USB device number 6 using uhci_hcd usb 5-1: New USB device found, idVendor=096e, idProduct=0302 usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb 5-1: Product: HID Token M8 usb 5-1: Manufacturer: OEM usb 5-1: configuration #1 chosen from 1 choice usbhid 5-1:1.0: couldn't find an input interrupt endpoint