SCRIPTOR(1)

πŸ“¦
version 1.7.5 Β· 2 versions
, in arch rolling, epel 10, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’– SCRIPTOR(1) πŸ’–

ok so bestie, we're in the General Commands Manual section, and this lil cutie is called scriptor β€” a Perl script that sends commands to a smart card. yes. that's the whole vibe. let's get into it 🫢


✨ NAME ✨

scriptor β€” a Perl script to send commands to a smart card πŸŽ€


🌸 SYNOPSIS 🌸

scriptor [-h] [-r reader] [-p protocol] [-u] [file]

πŸ¦‹ DESCRIPTION πŸ¦‹

This manual page documents briefly the scriptor command. lowkey a little summary moment, and that's fine πŸ’…

scriptor is a program that sends commands to a smart card using a batch file or stdin. that's it. that's the whole job. iconic behaviour honestly πŸ‘‘


πŸ’… OPTIONS πŸ’…

A description of options is included below. buckle up, there's not that many, we can do this together πŸ“

  • -h β€” Show summary of options. your lil help menu bestie ✨
  • -r reader β€” Use the indicated reader. By default the first PC/SC reader is used. so if you don't pick one, it just grabs whoever showed up first to the party πŸ’€
  • -p protocol β€” Use the indicated protocol. Accepted values are T=0 and T=1. By default T=0 is used. only those two, no negotiating 🚫
  • -u β€” Use unbuffered stdout. for when you simply cannot wait for the buffer to flush, periodt 🌈
  • file β€” Use the file instead of stdin to read commands (APDUs). so like, read from a file instead of you typing it all in, thank god 😭

The commands are of the form:

CLA INS P1 P2 Lc [data] [le]
reset
# comment

Example:

# reset the card
reset

# Select MF 3F00
A0 A4 00 00 02 3F 00

# Get Response
# 17 is the value of second SW from the previous command
A0 C0 00 00 17

# Select DF Telecom (7F10)
A0 A4 00 00 02 7F 10

# Get Response
A0 C0 00 00 17

# Select EF_ADN (6F3A) (Abbreviated Dialing Numbers)
A0 A4 00 00 02 6F 3A

# Get Response
A0 C0 00 00 0F

ok literally look at those comments doing the absolute most to explain themselves, we stan a self-documenting batch file πŸ’–


πŸ‘€ SEE ALSO πŸ‘€

pcscd(8), gscriptor(1)

go read those too bestie, the lore is deep 🧚


πŸ’œ AUTHOR πŸ’œ

This manual page was written by Ludovic Rousseau <rousseau@debian.org>, for the Debian GNU/Linux system (but may be used by others). absolute legend, no cap πŸ‘‘


and that's a wrap!! this page is serving octobre 17, 2003 energy, straight from the SCRIPTOR(1) files πŸ’–βœ¨πŸŒΈ thank you for reading, ily, go talk to your smart card responsibly πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from