ATR_ANALYSIS(1p)

πŸ“¦
version 1.7.5 Β· 4 versions
, in alpine 3.24, arch rolling, debian trixie, epel 10, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 πŸŽ€βœ¨