Commit Graph

73 Commits

Author SHA1 Message Date
Gerrit Code Review
3db09f4d1e Update notes for submitted changes
* cards: add methods to help erasing of file contents
* utils: do not crash when all bytes of EF.IMSI are 0xFF
2020-05-22 13:11:51 +00:00
Gerrit Code Review
63b18e71f4 Update notes for submitted changes
* commands: add features to verify data written to files
* commands: add method to determine size of a non record oriented file
* pysim-prog: move ADM sanitation to utils.py
2020-05-17 18:55:29 +00:00
Gerrit Code Review
6baf039f09 Update notes for submitted changes
* cards: reset uninitalized EF.AD
2020-05-17 07:34:14 +00:00
Gerrit Code Review
c1c51f14dc Update notes for submitted changes
* Treat MCC and MNC as strings, not integers
2020-05-13 09:52:54 +00:00
Gerrit Code Review
939343355c Update notes for submitted changes
* pySim-prog, pySim-read, do not echo reader id
2020-05-12 18:11:38 +00:00
Gerrit Code Review
f56b90b79e Update notes for submitted changes
* cards: remove len calculation
2020-05-12 18:06:24 +00:00
Gerrit Code Review
2200800f6f Update notes for submitted changes
* Add option to specify MNC length in non-batch programming scnearios
2020-05-12 07:10:53 +00:00
Gerrit Code Review
a40238067e Update notes for submitted changes
* utils.py: Add helper method to parse ePDG Identifier from hex string
* Introduce function for converting bytes list in (hex or int) to string
* Import TLV parsing related function from https://github.com/mitshell/card
2020-05-11 17:25:33 +00:00
Gerrit Code Review
1b8ba263c0 Update notes for submitted changes
* Fix writing of EF.HPLMNwAcT on sysmoISIM-SJA2
2020-05-09 15:51:05 +00:00
Gerrit Code Review
2eef7d5232 Update notes for submitted changes
* Enable parsing of ISIM Service table (IST)
* Extend parsing and printing of Service table to ISIM
* Define mapping between ISIM Service Number and its description
* Enable parsing of USIM Service table (UST)
* Remove redundant functions
* Use helper method to print available service in EF.SST
* utils.py: Add helper method to parse and print Service Table
2020-04-29 09:10:55 +00:00
Gerrit Code Review
b4ec9bfc33 Update notes for submitted changes
* pySim-read.py: Add ability to read Cards with correct CLA, P1 and P2 bytes
2020-04-27 10:17:56 +00:00
Gerrit Code Review
a7dd74743b Update notes for submitted changes
* cards.py: Added method to select ADF by its full AID
* Populate AIDs present on the UICC
2020-04-19 08:25:39 +00:00
Gerrit Code Review
876d114992 Update notes for submitted changes
* Define mapping between USIM Service Number and its description
* Add ability to parse SIM Service Table (EF.SST)
2020-04-17 10:13:01 +00:00
Gerrit Code Review
448fadd45f Update notes for submitted changes
* utils.py: Add helper method to parse Service Table
* Define mapping between SIM Service Number and its description
* Use the generic method read_binary of card class to read AD
* Move parsing of MSISDN to generic Card class
* Use the generic method read_binary of card class to read ACC
* Move parsing of HPLMNAcT to generic Card class
* Move parsing of OPLMNwAcT to generic Card class
* Move parsing of PLMNwAcT to generic Card class
2020-04-01 09:40:24 +00:00
Gerrit Code Review
88a941b856 Update notes for submitted changes
* Use the generic method read_binary of card class to read PLMNsel
* pySim-read.py: Use the method declared in cards.py to read SPN
* Use the generic method read_record of card class to read SMSP
* Use read_binary function of card class to read GID2 and reduce code duplication
* cards.py: Add generic function to read EF record in card class
* cards.py: Add generic function to read EF binary to card class
* Move parsing of GID2 to generic Card class
2020-04-01 08:54:52 +00:00
Gerrit Code Review
263b1f6201 Update notes for submitted changes
* Move parsing of GID1 to generic Card class
* pySim-read.py: Use the method declared in cards.py to read IMSI
* pySim-read.py: Use the method declared in cards.py to read ICCID
2020-03-28 17:58:16 +00:00
Gerrit Code Review
95e1b9bb8a Update notes for submitted changes
* pySim-read.py: Added a common card detection function for both pySim-prog.py and pySim-read.py
* cards.py: Added parsing of all the AIDs in the UICC
2020-03-27 17:22:56 +00:00
Gerrit Code Review
eede4032bc Update notes for submitted changes
* pySim-read.py: support for reading GID2 from SIM
* pySim-read.py: support for reading GID1 from SIM
2020-03-13 07:44:45 +00:00
Gerrit Code Review
dcadff5976 Update notes for submitted changes
* sysmoISIM-SJA2: Add suport for USIM-only and ISIM-only cards
* sysmiISIM-SJA2: add support for new card model / os version
2020-03-11 15:08:16 +00:00
Gerrit Code Review
139b874f8b Update notes for submitted changes
* cards: Python 3 fix: use the floor division operator //
* commands: Python 3 fix: properly distinguish str and list
* transport/pcsc: explicitly specify T0 protocol
* transport/pcsc: cosmetic: reuse the existing code of PcscSimLink
* utils: fix dec_msisdn(): properly detect international numbers
2020-03-01 19:22:04 +00:00
Gerrit Code Review
211029e2b8 Update notes for submitted changes
* Py2 -> Py3: use the floor division operator // where possible
* pySim-read.py: do not import json, it is not needed
2020-02-15 19:11:50 +00:00
Gerrit Code Review
400db17347 Update notes for submitted changes
* pySim-prog.py: add support for MSISDN programming
* pySim-read.py: fix reading and parsing of EF.MSISDN
* Fix MCC and MCC representation in the output of pySim-read
* cards/sysmoUSIM-SJS1: support programming of EF.HPLMNwAcT
* cards/sysmoUSIM-SJS1: support programming of ACC bits
* cards: fix reading of EF.HPLMNwAcT in Card.update_hplmn_act()
* cards: cosmetic/indentation fix: use tabs, not spaces
* pySim-prog.py: add presence/length checks for user-provided SPN
* pySim-read.py: print meaningful message when SPN is not set
2020-02-15 19:11:35 +00:00
Gerrit Code Review
60d4c76a7d Update notes for submitted changes
* pySim-read.py: fix copy-paste: s/HPLMNAcT/PLMNsel/
* Fix compatibility with Python 3: print() is a function
* testdata/sysmoUSIM-SJS1.ok: make it match the actual EF.HPLMNAcT
2020-02-14 19:31:02 +00:00
Gerrit Code Review
70003bdf24 Update notes for submitted changes
* Fix file permission
* Added feature to program SPN into sysmoUSIM-SJS1 SIM cards
2020-01-31 14:57:30 +00:00
Gerrit Code Review
b881b96d8e Update notes for submitted changes
* Added feature to read Service Provider Name (SPN) from the SIM card
2020-01-21 12:54:58 +00:00
Gerrit Code Review
adb0f3e0f5 Update notes for submitted changes
* cards: Add support for sysmo-isim-sja2
2020-01-09 13:05:50 +00:00
Gerrit Code Review
ec91cc6c16 Update notes for submitted changes
* Fixup: Fix automated tests
2019-12-31 17:07:38 +00:00
Gerrit Code Review
8f0072d207 Update notes for submitted changes
* commands: fix __record_len()
2019-12-23 17:15:14 +00:00
Gerrit Code Review
4e2a5fa4dc Update notes for submitted changes
* Fix automated tests
2019-12-17 13:46:58 +00:00
Gerrit Code Review
759b8e95c9 Update notes for submitted changes
* Fairwaves-SIM: Add test data
2019-11-12 12:39:01 +00:00
Gerrit Code Review
3ac02c4f9f Update notes for submitted changes
* cards.py: do not use spaces in card names
2019-11-11 14:00:38 +00:00
Gerrit Code Review
206be3336a Update notes for submitted changes
* python3 conversion: Use python 2 and 3 compatible exceptions
2019-10-07 20:03:08 +00:00
Gerrit Code Review
05d9dd58e5 Update notes for submitted changes
* python3 conversion: fix tabs and spaces inconsistency
2019-09-28 12:44:30 +00:00
Gerrit Code Review
89671ac3dc Update notes for submitted changes
* pySim-prog: use functions to derive MCC/MNC from IMSI
* cards: use string representation for MNC/MCC
* pySim-prog: check if CSV file exists
* pySim-prog: use case insensitive CSV headers.
* pySim-prog.py: use more expressive error message on CSV read failure
2019-09-14 15:34:32 +00:00
Gerrit Code Review
793d1afc4c Update notes for submitted changes
* Add support for automatic card handling
2019-09-13 08:13:57 +00:00
Gerrit Code Review
60d6da5a20 Update notes for submitted changes
* pySim-prog: generate a pin_adm from pin_adm_hex also for CSV files
2019-09-12 08:23:45 +00:00
Gerrit Code Review
b16257d79d Update notes for submitted changes
* Add an option to read the iccid and batch-program the new card data
* pySim-prog: Add option for hex ADM keys
* pySim-prog: Use CSV format with headers
2019-09-04 18:50:41 +00:00
Gerrit Code Review
7b866328b8 Update notes for submitted changes
* pySim-prog: Print out hex-escaped pin_adm in card parameters
2019-09-04 10:47:40 +00:00
Gerrit Code Review
bd069dc4ae Update notes for submitted changes
* pysim-testdate: Add test data for Wavemobile-sim
2019-09-02 20:21:02 +00:00
Gerrit Code Review
1b1bfbb684 Update notes for submitted changes
* make writing SMSP optional
2019-09-02 09:15:30 +00:00
Gerrit Code Review
7162b96ec8 Update notes for submitted changes
* Make programming OPC optional
2019-08-29 05:34:59 +00:00
Gerrit Code Review
6917fa5180 Update notes for submitted changes
* pySim-*.py: print info about selected reader interface
2019-05-10 15:26:30 +00:00
Gerrit Code Review
94b1e684c6 Update notes for submitted changes
* Don't try to parse result if select_file() failed
* Use reference array for reading ICCID
2019-05-10 15:08:19 +00:00
Gerrit Code Review
aab6a743d7 Update notes for submitted changes
* utils: add EF [H|O]PLMNwAcT decoding.
* import pysim-testdata of automatic testing to this repository
2019-05-10 15:05:45 +00:00
Gerrit Code Review
3100d26b2f Update notes for submitted changes
* wavemobile-sim: write mnc-length field ine EF.AD
2019-04-08 07:08:49 +00:00
Gerrit Code Review
daa10fce26 Update notes for submitted changes
* cosmetic: fix sourecode formatting
2019-04-08 07:08:36 +00:00
Gerrit Code Review
ca63954a93 Update notes for submitted changes
* sysmo-usim-sjs1: update EF.AD with correct MNC length
2019-04-08 07:03:52 +00:00
Gerrit Code Review
e0b0d0a36b Update notes for submitted changes
* cards: sysmo-usim-sjs1: add programming of EF.PLMNsel, EF.PLMNwAcT and EF.OPLMNwAcT
2019-04-01 13:10:05 +00:00
Gerrit Code Review
27eb82678c Update notes for submitted changes
* commands: correct case of a TLV tag (A5 => a5)
2019-03-26 08:42:26 +00:00
Gerrit Code Review
84634b8431 Update notes for submitted changes
* pySim-*.py: add command line option for Calypso reader
* pySim-*.py: refactor card reader driver initialization
* pySim/transport: introduce Calypso based reader interface
2018-11-12 15:25:12 +00:00