OPENSC-EXPLORER(1) | OpenSC Tools | OPENSC-EXPLORER(1) |
NAME¶
opensc-explorer - generic interactive utility for accessing smart card and similar security token functions
SYNOPSIS¶
opensc-explorer [OPTIONS] [SCRIPT]
DESCRIPTION¶
The opensc-explorer utility can be used interactively to perform miscellaneous operations such as exploring the contents of or sending arbitrary APDU commands to a smart card or similar security token.
OPTIONS¶
The following are the command-line options for opensc-explorer. There are additional interactive commands available once it is running.
--card-driver driver, -c driver
--mf path, -m path
--reader num, -r num
--verbose, -v
--wait, -w
COMMANDS¶
The following commands are supported at opensc-explorer's interactive prompt or in script files passed via the command line parameter SCRIPT.
apdu hex-data
asn1 file-id
cat [file-id | sfi:short-id]
cd {.. | file-id | aid:DF-name}
change CHVpin-ref [[old-pin] new-pin]
Examples:
change CHV2 00:00:00:00:00:00 "foobar"
change CHV2 "foobar"
change CHV2
create file-id size
debug [level]
If level is omitted the current debug level will be shown.
delete file-id
do_get hex-tag [output]
The local file is specified by output while the tag of the card's data is specified by hex-tag.
If output is omitted, the name of the output file will be derived from hex-tag.
do_put hex-tag input
hex-tag is the tag of the card's data. input is the filename of the source file or the literal data presented as a sequence of hexadecimal values or " enclosed string.
echo string...
erase
get file-id [output]
If output is omitted, the name of the output file will be derived from the full card path to file-id.
info [file-id]
ls [pattern...]
find [start-id [end-id]]
find_tags [start-tag [end-tag]]
mkdir file-id size
put file-id input
quit
random count
rm file-id
unblock CHVpin-ref [puk [new-pin]]
PUK and PIN values can be a sequence of hexadecimal values, "-enclosed strings, empty (""), or absent. If they are absent, the values are read from the card reader's pin pad.
Examples:
unblock CHV2 00:00:00:00:00:00 "foobar"
unblock CHV2 00:00:00:00:00:00 ""
unblock CHV2 "" "foobar"
unblock CHV2 00:00:00:00:00:00
unblock CHV2 ""
unblock CHV2
update_binary file-id offs data
data can be supplied as a sequencer of the hex values or as a " enclosed string.
update_record file-id rec-nr rec-offs data
data can be supplied as a sequence of the hex values or as a " enclosed string.
verify key-typekey-id [key]
If key is omitted, the exact action depends on the card reader's features: if the card readers supports PIN input via a pin pad, then the PIN will be verified using the card reader's pin pad. If the card reader does not support PIN input, then the PIN will be asked interactively.
Examples:
verify CHV0 31:32:33:34:00:00:00:00
verify CHV1 "secret"
verify KEY2
sm {open | close}
SEE ALSO¶
AUTHORS¶
opensc-explorer was written by Juha Yrjölä <juha.yrjola@iki.fi>.
12/15/2020 | opensc |