SCRIPTOR(1p)

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

okay bestie, welcome to scriptor β€” the lil Perl baddie that sends commands to a smart card πŸ’³βœ¨ (yes, it's a 1p page, that's the manual section, we love a specific queen)


✨ NAME ✨

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


πŸ¦‹ SYNOPSIS πŸ¦‹

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

🌸 DESCRIPTION 🌸

So this manual page documents, like, briefly, the scriptor command. Short and sweet, no yapping. πŸŽ€

scriptor is a program that sends commands to a smart card using a batch file or stdin. That's it. That's the whole vibe. It reads your commands, it fires them at the card, main character energy only. πŸ‘‘


πŸ’… OPTIONS πŸ’…

A description of options is included below. (yes, that's literally what the manpage says, I'm not gonna gatekeep it from you 🫢)

  • -h β€” show a summary of options. Your lil help menu, your safe space. 🧚
  • -r reader β€” use the indicated reader. By default the first PC/SC reader is used. no reader picked? it just grabs the first one, lowkey convenient. ✨
  • -p protocol β€” use the indicated protocol. accepted values are T=0 and T=1. by default T=0 is used. so if you don't say anything, it's T=0 era. πŸŽ€
  • -u β€” use unbuffered stdout. for when you need that output immediately, no waiting, no buffering, instant gratification fr fr. πŸ”₯
  • file β€” use the file instead of stdin to read commands (APDUs). you can hand it a file OR pipe stuff in, your call bestie. πŸ’œ

The commands are of the form:

 CLA INS P1 P2 Lc [data] [le]
 reset
 # comment
not me showing you the whole format because I want you to actually win πŸ’€ it's giving "learn the grammar or perish"

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

🌈 SEE ALSO 🌈

pcscd(8),gscriptor(1)

(yes there's no space after the comma, I'm keeping it exactly how it was written, I don't make the rules 😭)

πŸ‘‘ 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 icon behavior, shoutout to Ludovic 🫢✨


and that's the whole page bestie, we ate and left no crumbs πŸ’–βœ¨

this was the SCRIPTOR(1p) page β€” dated octobre 17, 2003 πŸŽ€ (yes, "octobre", it's French, we're cultured here) β€” and it lives in manual section 1p, so like, that's the source/version energy, mwah πŸ’‹

ily, go talk to your smart card πŸ¦‹πŸ’³