SlideShare une entreprise Scribd logo
1  sur  46
Télécharger pour lire hors ligne














💸
$ pcsc_scan
PC/SC device scanner
V 1.4.23 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
Compiled with PC/SC lite version: 1.8.11
Using reader plug'n play mechanism
Scanning present readers...
0: Gemalto PC Twin Reader 00 00
Wed Oct 5 21:45:38 2016
Reader 0: Gemalto PC Twin Reader 00 00
Card state: Card inserted,
ATR: 3B 9D 95 80 3F C7 A0 80 31 A0 73 BE 21 13 51 05 83 05 90 00 7C
ATR: 3B 9D 95 80 3F C7 A0 80 31 A0 73 BE 21 13 51 05 83 05 90 00 7C
+ TS = 3B --> Direct Convention
+ T0 = 9D, Y(1): 1001, K: 13 (historical bytes)
TA(1) = 95 --> Fi=512, Di=16, 32 cycles/ETU
125000 bits/s at 4 MHz, fMax for Fi = 5 MHz => 156250 bits/s
TD(1) = 80 --> Y(i+1) = 1000, Protocol T = 0
-----
TD(2) = 3F --> Y(i+1) = 0011, Protocol T = 15 - Global interface bytes following
-----
TA(3) = C7 --> Clock stop: no preference - Class accepted by the card: (3G) A 5V B 3V C 1.8V
TB(3) = A0 -->
+ Historical bytes: 80 31 A0 73 BE 21 13 51 05 83 05 90 00
Category indicator byte: 80 (compact TLV data object)
Tag: 3, len: 1 (card service data byte)
Card service data byte: A0
- Application selection: by full DF name
- BER-TLV data objects available in EF.DIR
- EF.DIR and EF.ATR access services: by GET RECORD(s) command
- Card with MF
Tag: 7, len: 3 (card capabilities)
Selection methods: BE
- DF selection by full DF name
- DF selection by path
- DF selection by file identifier
- Implicit DF selection
- Short EF identifier supported
- Record number supported
Data coding byte: 21
- Behaviour of write functions: proprietary
- Value 'FF' for the first byte of BER-TLV tag fields: invalid
- Data unit in quartets: 2
Command chaining, length fields and logical channels: 13
- Logical channel number assignment: by the card
- Maximum number of logical channels: 4
Tag: 5, len: 1 (card issuer's data)
Card issuer data: 05
Tag: 8, len: 3 (status indicator)
LCS (life card cycle): 05 (Operational state (activated))
SW: 9000 (Normal processing.)
+ TCK = 7C (correct checksum)
Possibly identified card (using /home/sim-user/.cache/smartcard_list.txt):
3B 9D 95 80 3F C7 A0 80 31 A0 73 BE 21 13 51 05 83 05 90 00 7C
NTT docomo Xi(LTE) DN05(DNP) Pink SIM (Telecommunication)
- Maximum number of logical channels: 4
Tag: 5, len: 1 (card issuer's data)
Card issuer data: 05
Tag: 8, len: 3 (status indicator)
LCS (life card cycle): 05 (Operational state (activated))
SW: 9000 (Normal processing.)
+ TCK = 7C (correct checksum)
Possibly identified card (using /home/sim-user/.cache/smartcard_list.txt):
3B 9D 95 80 3F C7 A0 80 31 A0 73 BE 21 13 51 05 83 05 90 00 7C
NTT docomo Xi(LTE) DN05(DNP) Pink SIM (Telecommunication)
thanks!!
3GPP
3GPP TS 11.11 V8.14.0 (2007-06)118Release 1999
MF
'3F00'
DFGSM DFTELECOM DFIS-41 DFFP-CTS EFICCID EFELP
'7F20' '7F10' '7F22' '7F23' '2FE2' '2F05'
see GSM 11.19
EFADN EFFDN EFSMS EFCCP EFMSISDN
'6F3A' '6F3B' '6F3C' '6F3D' '6F40'
EFSMSP EFSMSS EFLND EFSMSR EFSDN
'6F42' '6F43' '6F44' '6F47' '6F49'
EFEXT1 EFEXT2 EFEXT3 EFBDN EFEXT4
'6F4A' '6F4B' '6F4C' '6F4D' '6F4E'
DFGRAPHICS EFIMG
'5F50' '4F20'
DFIRIDIUM DFGLOBST DFICO DFACeS
'5F30' '5F31' '5F32' '5F33'
DFEIA/TIA-553 DFCTS DFSoLSA EFSAI EFSLL
'5F40' '5F60' '5F70' '4F30' '4F31'
see GSM 11.19
DFMExE EFMExE-ST EFORPK EFARPK EFTPRPK
'5F3C' '4F40' '4F41' '4F42' '4F43'
EFLP EFIMSI EFKc EFPLMNsel EFHPPLMN EFACMmax
'6F05' '6F07' '6F20' '6F30' '6F31' '6F37'
EFSST EFACM EFGID1 EFGID2 EFPUCT EFCBMI
'6F38' '6F39' '6F3E' '6F3F' '6F41' '6F45'
EFSPN EFCBMID EFBCCH EFACC EFFPLMN EFLOCI
'6F46' '6F48' '6F74' '6F78' '6F7B' '6F7E'
EFAD EFPHASE EFVGCS EFVGCSS EFVBS EFVBSS
'6FAD' '6FAE' '6FB1' '6FB2' '6FB3' '6FB4'
EFeMLPP EFAAeM EFECC EFCBMIR EFNIA EFKcGPRS
'6FB5' '6FB6' '6FB7' '6F50' '6F51' '6F52'
EFLOCIGPRS EFSUME EFPLMNwAcT EFOPLMNwAcT EFHPLMNAcT EFCPBCCH
'6F53' '6F54' '6F60' '6F61' '6F62' '6F63'
EFINVSCAN
'6F64'
Figure 8: File identifiers and directory structures of GSM
./pySim-read.py -p 0
Reading ...
8981100004402791051
440103152044102
SMSP: edffffffffffffffffffffffff07911809131056f2ffffffffffffa9
ACC: 0004
MSISDN: 07817040919843f3ffffffffffff
Done !
ICCID:
IMSI:
./pySim-read.py -p 0
Reading ...
8981100004402791051
440103152044102
SMSP: edffffffffffffffffffffffff07911809131056f2ffffffffffffa9
ACC: 0004
MSISDN: 07817040919843f3ffffffffffff
Done !
ICCID:
IMSI:
3GPP TS 11.11 V8.14.0 (200118se 1999
MF
'3F00'
FGSM DFTELECOM DFIS-41 DFFP-CTS EFICCID EFELP
F20' '7F10' '7F22' '7F23' '2FE2' '2F05'
see GSM 11.19
EFADN EFFDN EFSMS EFCCP EFMSISDN
'6F3A' '6F3B' '6F3C' '6F3D' '6F40'
EFSMSP EFSMSS EFLND EFSMSR EFSDN
'6F42' '6F43' '6F44' '6F47' '6F49'
EFEXT1 EFEXT2 EFEXT3 EFBDN EFEXT4
'6F4A' '6F4B' '6F4C' '6F4D' '6F4E'
19 bytes
2bytes 2bytes 2bytes 12bytes 1byte
MII CC II 12bytes CS
89 81 10 000440279105 1
3GPP TS 11.11 V8.14.0 (20118Release 1999
MF
'3F00'
DFGSM DFTELECOM DFIS-41 DFFP-CTS EFICCID EFELP
'7F20' '7F10' '7F22' '7F23' '2FE2' '2F05
see GSM 11.19
EFADN EFFDN EFSMS EFCCP EFMSISD
'6F3A' '6F3B' '6F3C' '6F3D' '6F40
EFSMSP EFSMSS EFLND EFSMSR EFSDN
'6F42' '6F43' '6F44' '6F47' '6F49
EFEXT1 EFEXT2 EFEXT3 EFBDN EFEXT4
'6F4A' '6F4B' '6F4C' '6F4D' '6F4E
DFGRAPHICS EFIMG
'5F50' '4F20'
EFADN EFFDN EFSMS EFCCP EFMSISD
'6F3A' '6F3B' '6F3C' '6F3D' '6F40
EFSMSP EFSMSS EFLND EFSMSR EFSDN
'6F42' '6F43' '6F44' '6F47' '6F49
EFEXT1 EFEXT2 EFEXT3 EFBDN EFEXT4
'6F4A' '6F4B' '6F4C' '6F4D' '6F4E
DFGRAPHICS EFIMG
'5F50' '4F20'
DFIRIDIUM DFGLOBST DFICO DFACeS
'5F30' '5F31' '5F32' '5F33'
DFEIA/TIA-553 DFCTS DFSoLSA EFSAI EFSLL
'5F40' '5F60' '5F70' '4F30' '4F31
see GSM 11.19
DFMExE EFMExE-ST EFORPK EFARPK EFTPRP
'5F3C' '4F40' '4F41' '4F42' '4F43
EFLP EFIMSI EFKc EFPLMNsel EFHPPLMN EFACMma
'6F05' '6F07' '6F20' '6F30' '6F31' '6F37
EFSST EFACM EFGID1 EFGID2 EFPUCT EFCBMI
~ 16 bytes
3bytes 2 ~ 3bytes ~ 10bytes
MCC MNC MSIN
440 10 3152044102
HNI


Peer
Peer
Authenticator
Authenticator
EAP-Request/Identity
EAP-Response/Identity
EAP-Request/SIM/Start (AT_VERSION_LIST)
EAP-Response/SIM/Start (AT_NONCE_MT, AT_SELECTED_VERSION)
EAP-Request/SIM/Challenge (AT_RAND, AT_MAC)
Peer runs GSM algorithms, verifies
AT_MAC and derives session keys
EAP-Response/SIM/Challenge (AT_MAC)
EAP-Success
Peer
Peer
Authenticator
Authenticator
EAP-Request/Identity
EAP-Response/Identity (Includes user’s NAI)
Server runs AKA algorithms,
generates RAND and AUTN.
EAP-Request/AKA-Challenge (AT_RAND, AT_AUTN, AT_MAC)
Peer runs AKA algorithms, verifies AUTN
and MAC, derives RES and session key
EAP-Response/AKA-Challenge (AT_RES, AT_MAC)
Server checks the given RES,
and MAC and finds them correct.
EAP-Success
COMMAND CLASS INS P1 P2 P3
INVALIDATE 'A0' '04' '00' '00' '00'
9.2.15 REHABILITATE
COMMAND CLASS INS P1 P2 P3
REHABILITATE 'A0' '44' '00' '00' '00'
9.2.16 RUN GSM ALGORITHM
COMMAND CLASS INS P1 P2 P3
RUN GSM
ALGORITHM
'A0' '88' '00' '00' '10'
Command parameters/data:
Byte(s) Description Length
1 - 16 RAND 16
Response parameters/data:
Byte(s) Description Length
1 - 4 SRES 4
5 - 12 Cipher Key Kc 8
The most significant bit of SRES is coded on bit 8 of byte 1. The most significant bit of Kc is coded on bit 8 of byte 5.
9.2.17 SLEEP
COMMAND CLASS INS P1 P2 P3
3GPP TS 11.11
$ cat /etc/freeradius/simtriplets.dat
# IMSI RAND SRES Kc
440103152044102,02bbdd69578d11057f3534539d61c3e1,9b93ab20,38a74d32f6334018
440103152044102,38279ae1b4ca5d63e93fcdbc2722b216,f8f9e5fe,9952db0411e0ac54
440103152044102,f35f71777ccfd21aec28913fc3fbe3bc,31452835,752a8baa96fa7dbf
Subscriber Identity Module
Subscriber Identity Module
Subscriber Identity Module
Subscriber Identity Module
Subscriber Identity Module

Contenu connexe

Tendances

Tendances (10)

Iptv m3u germany channels update 09 11-2017
Iptv m3u germany channels update 09 11-2017Iptv m3u germany channels update 09 11-2017
Iptv m3u germany channels update 09 11-2017
 
Main foxconn g31 m09
Main foxconn g31 m09Main foxconn g31 m09
Main foxconn g31 m09
 
hardware_design_RAFS
hardware_design_RAFShardware_design_RAFS
hardware_design_RAFS
 
0.47 inch LCD Micro Dispalay 800x600 Resolution RGB Interface LCD Screen
0.47 inch LCD Micro Dispalay 800x600 Resolution RGB Interface LCD Screen0.47 inch LCD Micro Dispalay 800x600 Resolution RGB Interface LCD Screen
0.47 inch LCD Micro Dispalay 800x600 Resolution RGB Interface LCD Screen
 
Fadal - CNC Vertical Machining Centers - Classic Series
Fadal - CNC Vertical Machining Centers - Classic SeriesFadal - CNC Vertical Machining Centers - Classic Series
Fadal - CNC Vertical Machining Centers - Classic Series
 
Lineup (fp0, fp0 r, fpς, and fp x)
Lineup (fp0, fp0 r, fpς, and fp x)Lineup (fp0, fp0 r, fpς, and fp x)
Lineup (fp0, fp0 r, fpς, and fp x)
 
Lampiran 1.programdocx
Lampiran 1.programdocxLampiran 1.programdocx
Lampiran 1.programdocx
 
Gigabyte ga 945 gzm-s2 rev 2.11
Gigabyte ga 945 gzm-s2 rev 2.11Gigabyte ga 945 gzm-s2 rev 2.11
Gigabyte ga 945 gzm-s2 rev 2.11
 
Stat softregistration
Stat softregistrationStat softregistration
Stat softregistration
 
Sua chua may lanh cua daikin
Sua chua may lanh cua daikinSua chua may lanh cua daikin
Sua chua may lanh cua daikin
 

Similaire à Subscriber Identity Module

Hi t 70xx system overview
Hi t 70xx  system overviewHi t 70xx  system overview
Hi t 70xx system overview
Thien Huynh
 
MR - MGD
MR - MGDMR - MGD
MR - MGD
leet01
 

Similaire à Subscriber Identity Module (20)

LG DA0LG2MB6D0 REV D PDF.pdf
LG DA0LG2MB6D0 REV D PDF.pdfLG DA0LG2MB6D0 REV D PDF.pdf
LG DA0LG2MB6D0 REV D PDF.pdf
 
ECS H77H2-M4 rA.pptx
ECS H77H2-M4 rA.pptxECS H77H2-M4 rA.pptx
ECS H77H2-M4 rA.pptx
 
Quanta ze7 r1b_schematics
Quanta ze7 r1b_schematicsQuanta ze7 r1b_schematics
Quanta ze7 r1b_schematics
 
Eneett re 24
Eneett re 24Eneett re 24
Eneett re 24
 
Hi t 70xx system overview
Hi t 70xx  system overviewHi t 70xx  system overview
Hi t 70xx system overview
 
How to design a Passive Infrared (PIR) Open Source Project
How to design a Passive Infrared (PIR) Open Source ProjectHow to design a Passive Infrared (PIR) Open Source Project
How to design a Passive Infrared (PIR) Open Source Project
 
Howto ethereal-wireshark-trace en
Howto ethereal-wireshark-trace enHowto ethereal-wireshark-trace en
Howto ethereal-wireshark-trace en
 
Embedded Recipes 2019 - Introduction to JTAG debugging
Embedded Recipes 2019 - Introduction to JTAG debuggingEmbedded Recipes 2019 - Introduction to JTAG debugging
Embedded Recipes 2019 - Introduction to JTAG debugging
 
Sdhstm 1 trunk card 2
Sdhstm 1 trunk card 2Sdhstm 1 trunk card 2
Sdhstm 1 trunk card 2
 
pdfcoffee.com_e11is2-rev-c-schematics-pdf-free.pdf
pdfcoffee.com_e11is2-rev-c-schematics-pdf-free.pdfpdfcoffee.com_e11is2-rev-c-schematics-pdf-free.pdf
pdfcoffee.com_e11is2-rev-c-schematics-pdf-free.pdf
 
Ft 50 manual
Ft 50 manualFt 50 manual
Ft 50 manual
 
Network Docs
Network DocsNetwork Docs
Network Docs
 
MR - MGD
MR - MGDMR - MGD
MR - MGD
 
CM4450 Diagrama-3395 manual de reparacion
CM4450 Diagrama-3395 manual de reparacionCM4450 Diagrama-3395 manual de reparacion
CM4450 Diagrama-3395 manual de reparacion
 
5638
56385638
5638
 
Ax som-bf60x description
Ax som-bf60x descriptionAx som-bf60x description
Ax som-bf60x description
 
Analysis Extract AFSC 5JOX1 Paralegal (Active Duty).pdf
Analysis Extract AFSC 5JOX1 Paralegal (Active Duty).pdfAnalysis Extract AFSC 5JOX1 Paralegal (Active Duty).pdf
Analysis Extract AFSC 5JOX1 Paralegal (Active Duty).pdf
 
Packet Card Knowledge Transferfinal
Packet Card Knowledge TransferfinalPacket Card Knowledge Transferfinal
Packet Card Knowledge Transferfinal
 
Handheld Point of Sale Terminal
Handheld Point of Sale TerminalHandheld Point of Sale Terminal
Handheld Point of Sale Terminal
 
Diagnóstico y programación de mercedes benz
Diagnóstico y programación de mercedes benzDiagnóstico y programación de mercedes benz
Diagnóstico y programación de mercedes benz
 

Plus de Yuki Mizuno

ノーゲーム・ノーライフ[Games on Linux] - Kernel/VM北陸1
ノーゲーム・ノーライフ[Games on Linux] -  Kernel/VM北陸1ノーゲーム・ノーライフ[Games on Linux] -  Kernel/VM北陸1
ノーゲーム・ノーライフ[Games on Linux] - Kernel/VM北陸1
Yuki Mizuno
 

Plus de Yuki Mizuno (9)

地デジを理解したつもりになる回
地デジを理解したつもりになる回地デジを理解したつもりになる回
地デジを理解したつもりになる回
 
Xavier NXのカーネルとVMの話
Xavier NXのカーネルとVMの話Xavier NXのカーネルとVMの話
Xavier NXのカーネルとVMの話
 
HDMI探検隊
HDMI探検隊HDMI探検隊
HDMI探検隊
 
HTML5 and Video Streaming Vol.1
HTML5 and Video Streaming Vol.1HTML5 and Video Streaming Vol.1
HTML5 and Video Streaming Vol.1
 
# TELETEXT
# TELETEXT# TELETEXT
# TELETEXT
 
実践イカパケット解析α
実践イカパケット解析α実践イカパケット解析α
実践イカパケット解析α
 
実践イカパケット解析
実践イカパケット解析実践イカパケット解析
実践イカパケット解析
 
CTFの話 - coinsLT #10
CTFの話 - coinsLT #10CTFの話 - coinsLT #10
CTFの話 - coinsLT #10
 
ノーゲーム・ノーライフ[Games on Linux] - Kernel/VM北陸1
ノーゲーム・ノーライフ[Games on Linux] -  Kernel/VM北陸1ノーゲーム・ノーライフ[Games on Linux] -  Kernel/VM北陸1
ノーゲーム・ノーライフ[Games on Linux] - Kernel/VM北陸1
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Subscriber Identity Module

  • 1.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11. $ pcsc_scan PC/SC device scanner V 1.4.23 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr> Compiled with PC/SC lite version: 1.8.11 Using reader plug'n play mechanism Scanning present readers... 0: Gemalto PC Twin Reader 00 00 Wed Oct 5 21:45:38 2016 Reader 0: Gemalto PC Twin Reader 00 00 Card state: Card inserted, ATR: 3B 9D 95 80 3F C7 A0 80 31 A0 73 BE 21 13 51 05 83 05 90 00 7C ATR: 3B 9D 95 80 3F C7 A0 80 31 A0 73 BE 21 13 51 05 83 05 90 00 7C + TS = 3B --> Direct Convention + T0 = 9D, Y(1): 1001, K: 13 (historical bytes) TA(1) = 95 --> Fi=512, Di=16, 32 cycles/ETU 125000 bits/s at 4 MHz, fMax for Fi = 5 MHz => 156250 bits/s TD(1) = 80 --> Y(i+1) = 1000, Protocol T = 0 ----- TD(2) = 3F --> Y(i+1) = 0011, Protocol T = 15 - Global interface bytes following ----- TA(3) = C7 --> Clock stop: no preference - Class accepted by the card: (3G) A 5V B 3V C 1.8V TB(3) = A0 --> + Historical bytes: 80 31 A0 73 BE 21 13 51 05 83 05 90 00 Category indicator byte: 80 (compact TLV data object) Tag: 3, len: 1 (card service data byte) Card service data byte: A0 - Application selection: by full DF name - BER-TLV data objects available in EF.DIR - EF.DIR and EF.ATR access services: by GET RECORD(s) command - Card with MF Tag: 7, len: 3 (card capabilities) Selection methods: BE - DF selection by full DF name - DF selection by path - DF selection by file identifier - Implicit DF selection - Short EF identifier supported - Record number supported Data coding byte: 21 - Behaviour of write functions: proprietary - Value 'FF' for the first byte of BER-TLV tag fields: invalid - Data unit in quartets: 2 Command chaining, length fields and logical channels: 13 - Logical channel number assignment: by the card - Maximum number of logical channels: 4 Tag: 5, len: 1 (card issuer's data) Card issuer data: 05 Tag: 8, len: 3 (status indicator) LCS (life card cycle): 05 (Operational state (activated)) SW: 9000 (Normal processing.) + TCK = 7C (correct checksum) Possibly identified card (using /home/sim-user/.cache/smartcard_list.txt): 3B 9D 95 80 3F C7 A0 80 31 A0 73 BE 21 13 51 05 83 05 90 00 7C NTT docomo Xi(LTE) DN05(DNP) Pink SIM (Telecommunication)
  • 12. - Maximum number of logical channels: 4 Tag: 5, len: 1 (card issuer's data) Card issuer data: 05 Tag: 8, len: 3 (status indicator) LCS (life card cycle): 05 (Operational state (activated)) SW: 9000 (Normal processing.) + TCK = 7C (correct checksum) Possibly identified card (using /home/sim-user/.cache/smartcard_list.txt): 3B 9D 95 80 3F C7 A0 80 31 A0 73 BE 21 13 51 05 83 05 90 00 7C NTT docomo Xi(LTE) DN05(DNP) Pink SIM (Telecommunication)
  • 13.
  • 15.
  • 16.
  • 17.
  • 18. 3GPP 3GPP TS 11.11 V8.14.0 (2007-06)118Release 1999 MF '3F00' DFGSM DFTELECOM DFIS-41 DFFP-CTS EFICCID EFELP '7F20' '7F10' '7F22' '7F23' '2FE2' '2F05' see GSM 11.19 EFADN EFFDN EFSMS EFCCP EFMSISDN '6F3A' '6F3B' '6F3C' '6F3D' '6F40' EFSMSP EFSMSS EFLND EFSMSR EFSDN '6F42' '6F43' '6F44' '6F47' '6F49' EFEXT1 EFEXT2 EFEXT3 EFBDN EFEXT4 '6F4A' '6F4B' '6F4C' '6F4D' '6F4E' DFGRAPHICS EFIMG '5F50' '4F20' DFIRIDIUM DFGLOBST DFICO DFACeS '5F30' '5F31' '5F32' '5F33' DFEIA/TIA-553 DFCTS DFSoLSA EFSAI EFSLL '5F40' '5F60' '5F70' '4F30' '4F31' see GSM 11.19 DFMExE EFMExE-ST EFORPK EFARPK EFTPRPK '5F3C' '4F40' '4F41' '4F42' '4F43' EFLP EFIMSI EFKc EFPLMNsel EFHPPLMN EFACMmax '6F05' '6F07' '6F20' '6F30' '6F31' '6F37' EFSST EFACM EFGID1 EFGID2 EFPUCT EFCBMI '6F38' '6F39' '6F3E' '6F3F' '6F41' '6F45' EFSPN EFCBMID EFBCCH EFACC EFFPLMN EFLOCI '6F46' '6F48' '6F74' '6F78' '6F7B' '6F7E' EFAD EFPHASE EFVGCS EFVGCSS EFVBS EFVBSS '6FAD' '6FAE' '6FB1' '6FB2' '6FB3' '6FB4' EFeMLPP EFAAeM EFECC EFCBMIR EFNIA EFKcGPRS '6FB5' '6FB6' '6FB7' '6F50' '6F51' '6F52' EFLOCIGPRS EFSUME EFPLMNwAcT EFOPLMNwAcT EFHPLMNAcT EFCPBCCH '6F53' '6F54' '6F60' '6F61' '6F62' '6F63' EFINVSCAN '6F64' Figure 8: File identifiers and directory structures of GSM
  • 19. ./pySim-read.py -p 0 Reading ... 8981100004402791051 440103152044102 SMSP: edffffffffffffffffffffffff07911809131056f2ffffffffffffa9 ACC: 0004 MSISDN: 07817040919843f3ffffffffffff Done ! ICCID: IMSI:
  • 20. ./pySim-read.py -p 0 Reading ... 8981100004402791051 440103152044102 SMSP: edffffffffffffffffffffffff07911809131056f2ffffffffffffa9 ACC: 0004 MSISDN: 07817040919843f3ffffffffffff Done ! ICCID: IMSI:
  • 21.
  • 22. 3GPP TS 11.11 V8.14.0 (200118se 1999 MF '3F00' FGSM DFTELECOM DFIS-41 DFFP-CTS EFICCID EFELP F20' '7F10' '7F22' '7F23' '2FE2' '2F05' see GSM 11.19 EFADN EFFDN EFSMS EFCCP EFMSISDN '6F3A' '6F3B' '6F3C' '6F3D' '6F40' EFSMSP EFSMSS EFLND EFSMSR EFSDN '6F42' '6F43' '6F44' '6F47' '6F49' EFEXT1 EFEXT2 EFEXT3 EFBDN EFEXT4 '6F4A' '6F4B' '6F4C' '6F4D' '6F4E'
  • 23. 19 bytes 2bytes 2bytes 2bytes 12bytes 1byte MII CC II 12bytes CS 89 81 10 000440279105 1
  • 24.
  • 25.
  • 26.
  • 27. 3GPP TS 11.11 V8.14.0 (20118Release 1999 MF '3F00' DFGSM DFTELECOM DFIS-41 DFFP-CTS EFICCID EFELP '7F20' '7F10' '7F22' '7F23' '2FE2' '2F05 see GSM 11.19 EFADN EFFDN EFSMS EFCCP EFMSISD '6F3A' '6F3B' '6F3C' '6F3D' '6F40 EFSMSP EFSMSS EFLND EFSMSR EFSDN '6F42' '6F43' '6F44' '6F47' '6F49 EFEXT1 EFEXT2 EFEXT3 EFBDN EFEXT4 '6F4A' '6F4B' '6F4C' '6F4D' '6F4E DFGRAPHICS EFIMG '5F50' '4F20' EFADN EFFDN EFSMS EFCCP EFMSISD '6F3A' '6F3B' '6F3C' '6F3D' '6F40 EFSMSP EFSMSS EFLND EFSMSR EFSDN '6F42' '6F43' '6F44' '6F47' '6F49 EFEXT1 EFEXT2 EFEXT3 EFBDN EFEXT4 '6F4A' '6F4B' '6F4C' '6F4D' '6F4E DFGRAPHICS EFIMG '5F50' '4F20' DFIRIDIUM DFGLOBST DFICO DFACeS '5F30' '5F31' '5F32' '5F33' DFEIA/TIA-553 DFCTS DFSoLSA EFSAI EFSLL '5F40' '5F60' '5F70' '4F30' '4F31 see GSM 11.19 DFMExE EFMExE-ST EFORPK EFARPK EFTPRP '5F3C' '4F40' '4F41' '4F42' '4F43 EFLP EFIMSI EFKc EFPLMNsel EFHPPLMN EFACMma '6F05' '6F07' '6F20' '6F30' '6F31' '6F37 EFSST EFACM EFGID1 EFGID2 EFPUCT EFCBMI
  • 28. ~ 16 bytes 3bytes 2 ~ 3bytes ~ 10bytes MCC MNC MSIN 440 10 3152044102 HNI
  • 29.
  • 30.
  • 31.
  • 32. Peer Peer Authenticator Authenticator EAP-Request/Identity EAP-Response/Identity EAP-Request/SIM/Start (AT_VERSION_LIST) EAP-Response/SIM/Start (AT_NONCE_MT, AT_SELECTED_VERSION) EAP-Request/SIM/Challenge (AT_RAND, AT_MAC) Peer runs GSM algorithms, verifies AT_MAC and derives session keys EAP-Response/SIM/Challenge (AT_MAC) EAP-Success
  • 33.
  • 34. Peer Peer Authenticator Authenticator EAP-Request/Identity EAP-Response/Identity (Includes user’s NAI) Server runs AKA algorithms, generates RAND and AUTN. EAP-Request/AKA-Challenge (AT_RAND, AT_AUTN, AT_MAC) Peer runs AKA algorithms, verifies AUTN and MAC, derives RES and session key EAP-Response/AKA-Challenge (AT_RES, AT_MAC) Server checks the given RES, and MAC and finds them correct. EAP-Success
  • 35.
  • 36.
  • 37.
  • 38.
  • 39. COMMAND CLASS INS P1 P2 P3 INVALIDATE 'A0' '04' '00' '00' '00' 9.2.15 REHABILITATE COMMAND CLASS INS P1 P2 P3 REHABILITATE 'A0' '44' '00' '00' '00' 9.2.16 RUN GSM ALGORITHM COMMAND CLASS INS P1 P2 P3 RUN GSM ALGORITHM 'A0' '88' '00' '00' '10' Command parameters/data: Byte(s) Description Length 1 - 16 RAND 16 Response parameters/data: Byte(s) Description Length 1 - 4 SRES 4 5 - 12 Cipher Key Kc 8 The most significant bit of SRES is coded on bit 8 of byte 1. The most significant bit of Kc is coded on bit 8 of byte 5. 9.2.17 SLEEP COMMAND CLASS INS P1 P2 P3 3GPP TS 11.11
  • 40.
  • 41. $ cat /etc/freeradius/simtriplets.dat # IMSI RAND SRES Kc 440103152044102,02bbdd69578d11057f3534539d61c3e1,9b93ab20,38a74d32f6334018 440103152044102,38279ae1b4ca5d63e93fcdbc2722b216,f8f9e5fe,9952db0411e0ac54 440103152044102,f35f71777ccfd21aec28913fc3fbe3bc,31452835,752a8baa96fa7dbf