ATR_ANALYSIS(1p)
π ATR_ANALYSIS π
okay bestie, welcome to the manual page for ATR_analysis β it's a User Commands situation, section 1p, and honestly? it's giving niche-but-iconic. let's get into it π
β¨ NAME β¨
ATR_analysis β analyse a smart card ATR. that's it, that's the whole job, and she does it flawlessly π
πΈ SYNOPSIS πΈ
ATR_analysis [ATRstring]
one optional argument, zero drama. we love a low-maintenance queen π«Ά
π¦ DESCRIPTION π¦
so like, ATR_analysis is used to parse the ATR (Answer To Reset) that a smart card sends out. think of it as the card introducing itself the second it wakes up, and this tool is the friend who actually understands what it's saying π§
the command also tries to find the card model using an ATR database stored in a text file called smartcard_list.txt. it's basically a glow-up detective β¨
the smartcard_list.txt file is searched in these three places, in this order:
$XDG_CACHE_HOME/smartcard_list.txt$HOME/.smartcardlist.txt/usr/share/pcsc/smartcard_list.txt
π« Example π«
like, here's what it actually looks like when it eats:
$ ATR_analysis '3B A7 00 40 18 80 65 A2 08 01 01 52'
ATR: 3B A7 00 40 18 80 65 A2 08 01 01 52
+ TS = 3B --> Direct Convention
+ T0 = A7, Y(1): 1010, K: 7 (historical bytes)
TB(1) = 00 --> Programming Param P: 0, I: 0
TD(1) = 40 --> Y(i+1) = 0100, Protocol T = 0
-----
TC(2) = 18 --> Work waiting time: 960 x 24 x (Fi/F)
+ Historical bytes: 80 65 A2 08 01 01 52
Possibly identified card:
3B A7 00 40 18 80 65 A2 08 01 01 52
Gemplus GPK8000
look at that output. the way it decoded all those bytes and then dropped the card name at the end?? main character energy, no cap π₯
π BUGS π
ngl, there may be many bugs, because the author is not an ISO 7816 expert. real, honest, humble. we respect the transparency fr fr π
π FILES π
smartcard_list.txt
π SEE ALSO π
iykyk, go read those next bestie π
π AUTHOR π
Ludovic Rousseau <ludovic.rousseau@free.fr>
and that's a wrap, gorgeous π this whole thing is Version: 1.3, dated October 2005, and it's the ATR_ANALYSIS(1p) page from User Commands. slay, periodt πβ¨
π¦ where this page comes from
- alpine 3.24: pcsc-tools-doc 1.7.3-r1 Β· GPL-2.0-or-later
- arch rolling: pcsc-tools 1.7.5-1 Β· GPL
- debian trixie: pcsc-tools 1.7.3-1
- epel 10: pcsc-tools 1.7.5-2.el10_3 Β· GPL-2.0-or-later
- fedora 43: pcsc-tools 1.7.0-7.fc43 Β· GPL-2.0-or-later
- fedora 44: pcsc-tools 1.7.0-8.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: pcsc-tools 1.7.3-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: pcsc-tools 1.7.3-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: pcsc-tools 1.7.3-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: pcsc-tools 1.7.3-160000.2.2 Β· GPL-2.0-or-later
- ubuntu noble: pcsc-tools 1.7.1-1
- ubuntu questing: pcsc-tools 1.7.3-1
- ubuntu resolute: pcsc-tools 1.7.4-1
- ubuntu stonking: pcsc-tools 1.7.5-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms