1SCRIPTOR(1p) SCRIPTOR(1p)
2
3
4
6 scriptor - Perl script to send commands to a smart card
7
9 scriptor [-h] [-r reader] [-p protocol] [-u] [file]
10
12 This manual page documents briefly the scriptor command.
13
14 scriptor is a program that sends commands to a smart card using a batch
15 file or stdin.
16
18 A description of options is included below.
19
20 -h Show summary of options.
21
22 -r reader
23 Use the indicated reader. By default the first PC/SC reader is
24 used.
25
26 -p protocol
27 Use the indicated protocol. Accepted values are T=0 and T=1. By
28 default T=0 is used.
29
30 -u Use unbuffered stdout.
31
32 file Use the file instead of stdin to read commands (APDUs)
33
34 The commands are of the form:
35 CLA INS P1 P2 Lc [data] [le]
36 reset
37 # comment
38
39 Example:
40
41 # reset the card
42 reset
43
44 # Select MF 3F00
45 A0 A4 00 00 02 3F 00
46
47 # Get Response
48 # 17 is the value of second SW from the previous command
49 A0 C0 00 00 17
50
51 # Select DF Telecom (7F10)
52 A0 A4 00 00 02 7F 10
53
54 # Get Response
55 A0 C0 00 00 17
56
57 # Select EF_ADN (6F3A) (Abbreviated Dialing Numbers)
58 A0 A4 00 00 02 6F 3A
59
60 # Get Response
61 A0 C0 00 00 0F
62
64 pcscd(8),gscriptor(1)
65
67 This manual page was written by Ludovic Rousseau <rousseau@debian.org>,
68 for the Debian GNU/Linux system (but may be used by others).
69
70
71
72
73 octobre 17, 2003 SCRIPTOR(1p)