GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SECTOK(1) FreeBSD General Commands Manual SECTOK(1)

sectok
communicate with smartcards using iso7816

sectok [-0123] [-f scriptfile] [-s sleeptime]

sectok is a command-line-like interface for communicating with smartcards. APDUs can be sent to the card, and results are displayed. Some commands are card-specific, and focus on the Schlumberger Cyberflex Access Javacards.

The options are as follows:

Select port.
scriptfile
Run commands from scriptfile.
sleeptime
Set sleep (in milliseconds) between commands in the script.

List all commands.
[command]
Show help for command.
? [command]
Show help for command.
[-0123ivf]
Reset smartcard.
select port
don't wait for card insertion
verbose
open connection even if atr is bad
[-0123ivf]
Synonym for reset.
Close smartcard connection.
Quit sectok .

[-c class] ins p1 p2 p3 data ...
Send APDU to smartcard.
[-v] fid/aid
Select file or aid identified by fid/aid. fid/aid can be a numeric fid such as 3f00, a two character name, or an aid in hex or ascii.
Try all 256 possible instructions and print results.
[class]
Inquire or set default application class.
[-x] filesize
Read selected fid and write to stdout.
input-filename
Read from input-filename and write to selected fid.
[length]
Get a random challenge from the card.
[-k keyno] [PIN]
Verify CHV (PIN).
[-k keyno]
Change CHV (PIN).

[-l]
List all files in current DF.
fid [principal: r1 r2 ...]
principals
world, CHV1, CHV2, AUT0, AUT1, AUT2, AUT3, AUT4
f_rights
r, w, x/a, inval, rehab, dec, inc
d_rights
l, d, a, i, manage
fid size
 
fid
 
[-d]
Set default applet.
set default applet to default loader
Set java atr.
Print useful info about the card
[-d] [-k keyno] [-v] [-x hex-aut0]
"login" (verify AUT0 key)
use manufacturer's default AUT0 key
[-p progID] [-c contID] [-s cont_size] [-i inst_size] [-v] [-a aid] filename
Load an applet to the card. If the first byte of the aid is '#' it will be converted to 0xfc.
[-p progID] [-c contID]
 
[-a aid] [-d]
Select applet.
select default loader
[-d] [-x hex-aut0]
use manufacturer's default AUT0 key

sectok was written by Jim Rees and others at University of Michigan Center for Information Technology Integration (CITI).

sectok first appeared in OpenBSD 3.0.
July 17, 2001 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.