Commit Graph
100 Commits
Author SHA1 Message Date
Gerrit Code Review fa65297e5d Update notes for submitted changes
* ts_31_102: Further decode TAI in EF.OPL5G
* ts_31_102: Further decode LAI in EF_LOCI
* ts_51_011: Better decode of EF_OPL LAI
* ts_51_011: Properly decode EF.OPL
* ts_31_102: Fix decoding of UServiceTable
2022-02-25 18:19:00 +00:00
Gerrit Code Review affa3fd7ef Update notes for submitted changes
* ts_102_221: Fix decoding the 'num_of_rec' field
* ts_102_221: properly decode short file identifier
2022-02-25 12:41:47 +00:00
Gerrit Code Review b21262b796 Update notes for submitted changes
* add scripts/deactivate-ims.script to deactivate IMS related services
2022-02-21 09:05:42 +00:00
Gerrit Code Review 4bb9f2f07b Update notes for submitted changes
* Add scripts/deacivate-5g.script
* doc: Improve documentation in various places
* docs: Document missing 'status' command in 7816 section
* shell: Proper argparser (for help + manual) activate_file
* pySim-shell: export: Add FCP template to export
* docs/legcay.txt: Point to pySim-shell as replacement
* pySim-shell: support TS 102 222 administrative commands
* ts_102_221: Implement File Descriptor using construct
2022-02-18 11:56:45 +00:00
Gerrit Code Review dc5f7df482 Update notes for submitted changes
* pySim-shell: Allow selecting of deep paths like DF.GSM/EF.IMSI
* ts_31_103: TLV definitions for IMS, XCAP and MudMid configuration
* ts_51_011: EF_CMI: Decoder the alpha_id string
* ts_51_011: Convert EF_ADN and EF_ACC to Construct
* ts_51_011: Proper decode of EF.SMSP
* Improve IST/UST check documentation (for the user manual)
* ust_service_check: proper treatment of files in sub-directories
* ts_31_102: service annotations for DF.{5GS,WLAN,HNB}
* ts_31_102: Use perror() instead of poutput() for errors
* ts_31_102: Add more EF.UST checks to 'ust_service_check' command
* filesystem: Fix CardMF.get_app_names()
* Split EF.UST handling from EF.IST and EF.SST
* ts_31_102: Add "ust_service_check" command.
2022-02-17 11:41:29 +00:00
Gerrit Code Review c891f8ef37 Update notes for submitted changes
* README.md: Remove old usage examples, refer to user manual instead
2022-02-15 14:46:05 +00:00
Gerrit Code Review 4d9e15fc9a Update notes for submitted changes
* commands: Add method to select parent DF ("cd ..")
* cosmetic: Remove extraneous empty lines between spec-section-comment and class
* USIM + ISIM: Specify the services associated with each file
* filesystem: Maintain a 'service' attribute for all files on a card
* pySim-shell: introduce 'apdu' command for sending raw APDU to card
* pySim-shell: export: allow export as JSON instead of hex
2022-02-14 18:34:28 +00:00
Gerrit Code Review daa0f4b78b Update notes for submitted changes
* ts_102_221: Proper parsing of FCP using pySim.tlv instead of pytlv
* tlv: Don't raise exception if somebody passes empty data to TLV decoder
* filesystem: Don't pass empty string to parse_select_response()
* Extend unit test coverage for construct, add [some] tests for TLV
* construct: Add Construct for variable-length int 'GreedyInteger'
2022-02-14 10:10:57 +00:00
Gerrit Code Review 17fb49adcb Update notes for submitted changes
* tlv: Convert CamelCase class name to snake_case in json
* tlv: Function for flattening the list-of-dict output of TLV decoder
2022-02-12 08:33:45 +00:00
Gerrit Code Review 8f6b7238e3 Update notes for submitted changes
* utils: Fix missing Optional[] in type annotations
* cosmetic: Switch to consistent four-spaces indent; run autopep8
2022-02-11 13:50:38 +00:00
Gerrit Code Review ea9c82cfe5 Update notes for submitted changes
* ts_102_221: Implement proper parsing of EF.DIR
* filesystem.py: Accept both a class or an instance as TLV._tlv member
2022-02-11 12:31:22 +00:00
Gerrit Code Review 50a1ec2d9f Update notes for submitted changes
* ts_31_102: TLV._tlv must point to the class, not an instance
* filesystem: Fix TLV decode/encode
* Better decode of EF.UST, EF.EST and EF.IST
* utils.py: Fix some tuple type annotations
* utils.py: type annotations for DataObject related methods
2022-02-10 18:31:53 +00:00
Gerrit Code Review ef8243af23 Update notes for submitted changes
* ts_102_221: Handle nested security condition data objects
2022-02-10 16:21:04 +00:00
Gerrit Code Review 062c26d50c Update notes for submitted changes
* ts_51_011: Fix type annotation for Tuple[int, int]
2022-02-10 16:20:54 +00:00
Gerrit Code Review f9e1a19cc2 Update notes for submitted changes
* ts_51_011: Fix typo in EF_MMSUP
* ts_31_102: EF.PNN encoding is identical to that of DF.GSM
2022-02-09 20:23:27 +00:00
Gerrit Code Review 0ab9281ff7 Update notes for submitted changes
* publish also the HTML manual for pySim
2022-02-09 20:18:08 +00:00
Gerrit Code Review 05fb5246d4 Update notes for submitted changes
* contrib/jenkins.sh: Fix PUBLISH
* contrib/jenkins.sh: first upload manuals, then execute physical tests
2022-02-09 17:25:27 +00:00
Gerrit Code Review 640dcd4d8b Update notes for submitted changes
* avoid pylint E0611: No name 'strxor' in module 'Crypto.Util.strxor'
* update pyyaml dependency to >= 5.1
2022-02-09 15:57:11 +00:00
Gerrit Code Review 4f9268c4e7 Update notes for submitted changes
* implement shell command to update PLMN in IMSI
2022-01-31 11:55:12 +00:00
Gerrit Code Review 7a086d846d Update notes for submitted changes
* transport/serial: fix for Python 3
2022-01-25 01:01:17 +00:00
Gerrit Code Review ff56ca3c27 Update notes for submitted changes
* ts_102_221: decode/encode EF.PL
* pySim-shell: alphabetically sort name of files in 'dir' command
* cosmetic: Use EF.FDN instead of EF_FDN in ts_51_011.py
* ts_31_102: Add support for EF.ECC (emergency call codes)
2022-01-22 12:59:02 +00:00
Gerrit Code Review 6fa1f4cf87 Update notes for submitted changes
* add missing bit definition for NG-RAN in xAcT
2022-01-22 12:58:00 +00:00
Gerrit Code Review 4dc750e590 Update notes for submitted changes
* catch and ignore SwMatchError on probing for AID's
2022-01-21 11:14:43 +00:00
Gerrit Code Review 9a9de3e948 Update notes for submitted changes
* Add pyyaml to requirements.txt
2022-01-13 17:19:52 +00:00
Gerrit Code Review cae4f65468 Update notes for submitted changes
* filesystem: use correct AID for applications found by probing
2022-01-05 09:44:47 +00:00
Gerrit Code Review 479c232001 Update notes for submitted changes
* filesystem: actively probe applications
2021-12-04 10:38:24 +00:00
Gerrit Code Review 76c1a23298 Update notes for submitted changes
* fix invalid dependency
2021-11-26 09:19:26 +00:00
Gerrit Code Review 205007c133 Update notes for submitted changes
* fix: Decoder may raise KeyError
2021-11-26 09:19:16 +00:00
Gerrit Code Review 5cba868059 Update notes for submitted changes
* cards: Make select_adf_by_aid() use prefix AID selection
* pySim-read: put try/catch block around select_adf_by_aid()
2021-11-24 17:17:00 +00:00
Gerrit Code Review 949e6b49b9 Update notes for submitted changes
* cards: make _get_aid case insensitive
2021-11-22 17:37:00 +00:00
Gerrit Code Review 18628ed8f0 Update notes for submitted changes
* profile: decode_select_response use object instead 'Any'
* profile: decode_select_response can be a static method
2021-11-22 15:45:31 +00:00
Gerrit Code Review 22eb3c4250 Update notes for submitted changes
* pySim-shell: export command: guess number of records when not specified
* commands: use send_apdu_checksw() in method read_record
* ts_51_011: move _decode_select_response into profile class
* pySim-shell: add method to match card profile to card
2021-11-22 15:45:15 +00:00
Gerrit Code Review 256df0e55b Update notes for submitted changes
* pySim-read: do not select ADF.ISIM again
2021-11-18 13:05:29 +00:00
Gerrit Code Review 9b3b2b2b43 Update notes for submitted changes
* cards: select_adf_by_aid: split off aid completion
2021-11-18 09:37:08 +00:00
Gerrit Code Review e7726a06a1 Update notes for submitted changes
* ARA-M related command support
2021-11-11 09:24:47 +00:00
Gerrit Code Review b36e145057 Update notes for submitted changes
* ts_51_011: add status word definition
2021-11-11 08:54:07 +00:00
Gerrit Code Review e2c4dda5fc Update notes for submitted changes
* filesystem: CardProfile: initialize empty sw table as empty dict
2021-11-11 08:42:38 +00:00
Gerrit Code Review f5eea03cd7 Update notes for submitted changes
* filesystem: define class byte and select control bytes in profile
* filesystem: make sure the card is in a defined state
* filesystem: do not read AIDs when no apps are defined
* filesystem: fix decode_select_response
2021-11-10 17:26:12 +00:00
Gerrit Code Review 0e487ecd1d Update notes for submitted changes
* pySim-shell: print newline on exit with CTRL+D
2021-11-10 13:04:41 +00:00
Gerrit Code Review b1438008b9 Update notes for submitted changes
* commands: return none, when offset exceeds file length
2021-11-05 16:55:48 +00:00
Gerrit Code Review f767b49079 Update notes for submitted changes
* commands: complete documentation strings
2021-11-05 16:55:27 +00:00
Gerrit Code Review 987be62a53 Update notes for submitted changes
* utils: cosmetic: remove stray comment
2021-11-05 16:55:01 +00:00
Gerrit Code Review 6aef4b90bf Update notes for submitted changes
* commands: do not check SW manually, use send_apdu_checksw()
2021-11-05 16:54:43 +00:00
Gerrit Code Review 172f67c5c7 Update notes for submitted changes
* contrib/jenkins.sh: make pylint warn about unnecessary semicolon
* Python is not C: get rid of unnecessary semicolons
2021-11-05 16:04:03 +00:00
Gerrit Code Review d96f545cf8 Update notes for submitted changes
* sim-rest-server: Add example systemd service/unit file
2021-11-03 12:27:39 +00:00
Gerrit Code Review afa9a4b136 Update notes for submitted changes
* sim-rest-client: Add support for 'info' command to get IMSI+ICCID
* sim-rest-server: Add capability to obtain IMSI + ICCID of card
* sim-rest-client: Errors are plain text, not JSON
2021-11-03 11:38:35 +00:00
Gerrit Code Review 358dd95926 Update notes for submitted changes
* ts_51_011: implement CardProfileSIM as a class
* filesystem: fix reset mechanism
* cards: add method to modify APDU parameters (cla, sel_ctrl)
* commands: use python style commends to describe methods
* cards: use python style commends to describe methods
2021-10-31 07:27:18 +00:00
Gerrit Code Review 85ba156164 Update notes for submitted changes
* pySim-shell: Improve documentation
* utils: Fix BER-TLV tag decode for multi-byte tags
* tlv: Fix recursive initialization from_dict()
* tlv: Don't require encoder/decoder methods for TLV without value
* pySim-shell: Use iteration when unregistering command sets
* pySim-shell: Add suspend_uicc command
* pySim-shell: Add support for GSM-R SIM Cards with DF.EIRENE
2021-10-24 08:28:30 +00:00
Gerrit Code Review 8ab33ae05f Update notes for submitted changes
* pySim-shell: add bulk provisioning support
2021-10-20 12:42:59 +00:00
Gerrit Code Review 81ae67792d Update notes for submitted changes
* ts_31_10x: add a class for CardApplicationXSIM
2021-10-20 07:44:42 +00:00
Gerrit Code Review 432841f29a Update notes for submitted changes
* pySim-shell: add example script to dump authentication config
* sysmocom_sja2: Properly decode EF.USIM_SQN freshness
2021-10-16 10:07:37 +00:00
Gerrit Code Review 9f7123924d Update notes for submitted changes
* ts_51_011: Add encoder for EF.SST
* commands: Fix read_binary() for non-zero offset
2021-10-15 18:24:28 +00:00
Gerrit Code Review 9293dff929 Update notes for submitted changes
* pySim-shell: add echo command
2021-10-15 15:12:08 +00:00
Gerrit Code Review 3b3a76fe56 Update notes for submitted changes
* pySim-shell: allow card insertion at runtime
2021-10-15 15:11:31 +00:00
Gerrit Code Review 279f60dddc Update notes for submitted changes
* ts_51_011: fix select response decoder
2021-10-15 15:10:08 +00:00
Gerrit Code Review 1247c21d69 Update notes for submitted changes
* commands: fix update_binary() with non-zero offset
2021-10-14 17:48:38 +00:00
Gerrit Code Review 0fca6dc986 Update notes for submitted changes
* CardModel: Document how this 'magic' works in some comments.
2021-10-14 17:18:22 +00:00
Gerrit Code Review d0f5ed4c3f Update notes for submitted changes
* 51.011: Fix EF_SST decoder for services > table description
* filsystem: Make NotImplementedError more verbose.
* USIM: Add ENVELOPE and ENVELOPE-SMS shell commands
* Add API + shell command for sending TERMINAL PROFILE to card
* pysim-Shell: Add sysmocom SJA2 card specific bits
* cat: Fix SMS/ENVELOPE related IE tag definitions
* cat: Add more terminal profile bitmask definitions
2021-10-14 15:44:29 +00:00
Gerrit Code Review 44e382d835 Update notes for submitted changes
* cards: remove "auto_once" from possible ctype options
2021-10-14 08:22:37 +00:00
Gerrit Code Review 9e263560c7 Update notes for submitted changes
* card_handler: clean-up
2021-10-12 16:07:37 +00:00
Gerrit Code Review d091e59193 Update notes for submitted changes
* cards: remove unused function card_autodetect()
2021-10-08 09:33:16 +00:00
Gerrit Code Review 13da95384f Update notes for submitted changes
* pySim-shell: refactor __main__ section
2021-10-08 08:31:34 +00:00
Gerrit Code Review 04e81e65e6 Update notes for submitted changes
* cards: FairwavesSIM: force SIM APDUs during programming
2021-10-05 12:07:09 +00:00
Gerrit Code Review fb7f1532be Update notes for submitted changes
* pySim-prog: fix typo
2021-10-01 16:45:02 +00:00
Gerrit Code Review 93454d0484 Update notes for submitted changes
* pySim-shell: verify_adm: turn error messages into exceptions
2021-10-01 12:11:54 +00:00
Gerrit Code Review f1f985b2a1 Update notes for submitted changes
* card_handler: make reader (sl) operations optional.
2021-10-01 08:42:46 +00:00
Gerrit Code Review f2d325e951 Update notes for submitted changes
* pySim-shell: move command desc and verify_adm to PySimCommands
2021-09-22 14:19:06 +00:00
Gerrit Code Review 071c383f8c Update notes for submitted changes
* pySim-prog: rename card_handler to CardHandler
2021-09-20 08:09:30 +00:00
Gerrit Code Review a694c5794e Update notes for submitted changes
* pySim-prog: rename variable card_handler
2021-09-20 07:55:36 +00:00
Gerrit Code Review 14732beeeb Update notes for submitted changes
* update readme detail about cmd2 - make sure people get 1.5 from pip instead of some old debian-pkg
2021-08-31 06:52:10 +00:00
Gerrit Code Review 84a190ca63 Update notes for submitted changes
* Use README.md as long description in package metadata
2021-08-06 14:11:40 +00:00
Gerrit Code Review cd6951a09f Update notes for submitted changes
* Allow update_binary function to write more than 255 bytes
2021-08-03 07:09:23 +00:00
Gerrit Code Review 21ba332b97 Update notes for submitted changes
* cards: rename class "Card" to "SimCard"
2021-06-30 08:17:12 +00:00
Gerrit Code Review 48e76951c4 Update notes for submitted changes
* pySim/commands: Add envelope() method for ENVELOPE command
2021-06-30 08:14:27 +00:00
Gerrit Code Review 06db556110 Update notes for submitted changes
* implement more files with TLV + construct
* ts_31_102: Fully support USIM EF.AD
2021-06-14 07:53:31 +00:00
Gerrit Code Review 5415dcea2e Update notes for submitted changes
* ts_31_102: Start using pySim.tlv to implement more DF.5GS files
2021-06-13 20:46:49 +00:00
Gerrit Code Review def43ae657 Update notes for submitted changes
* cmd2: Constrain version to >= 1.3.0 but < 2.0.0
2021-06-12 06:04:56 +00:00
Gerrit Code Review ab4c577006 Update notes for submitted changes
* filesystem: Introduce support for TLV parser
2021-06-05 12:25:51 +00:00
Gerrit Code Review c85c4d5dbb Update notes for submitted changes
* Introduce new object-oriented TLV parser/decoder/encoder
* ts_102_221: Add construct for contents of EF.UMPC
2021-06-05 12:25:41 +00:00
Gerrit Code Review eb36982d32 Update notes for submitted changes
* construct: Recursive normalization of construct parse result
* utils: Make filter_dict() transparently pass non-dict
2021-06-05 09:35:08 +00:00
Gerrit Code Review 0ebcf5eb69 Update notes for submitted changes
* shell: Fix activate_file + deactivate_file commands
2021-05-26 03:58:01 +00:00
Gerrit Code Review 8afb0c14f4 Update notes for submitted changes
* shell: Add 'status' command to issue STATUS APDU
2021-05-25 20:46:26 +00:00
Gerrit Code Review 6a3bd68f87 Update notes for submitted changes
* transport: Add support for SW 6Cxx
2021-05-25 20:41:07 +00:00
Gerrit Code Review 2328499933 Update notes for submitted changes
* commands: remove superfluous getter/setter for cla_byte property
* commands: resolve inconsistency on sel_ctrl
2021-05-23 12:35:30 +00:00
Gerrit Code Review 00dcfb5d7c Update notes for submitted changes
* pySim-read: adjust meaning of HPLMN/OPLMN flags in EF_SPN
2021-05-23 10:06:08 +00:00
Gerrit Code Review 6fae4356cc Update notes for submitted changes
* ts_31_103: finish decoder and fix encoder for EF.PCSCF
* utils: split string formatting from dec_addr_tlv
* commands: pad short data input in update_record()
2021-05-23 10:05:50 +00:00
Gerrit Code Review 1ce01d54dc Update notes for submitted changes
* commands: check for status word in USIM authenticate command
* transport/pcsc: Raise exception if reader number is out of range
2021-05-22 20:39:27 +00:00
Gerrit Code Review 79b5a15449 Update notes for submitted changes
* cards: populate name property in Card, UsimCard and IsimCard
2021-05-21 15:22:32 +00:00
Gerrit Code Review b4892a6431 Update notes for submitted changes
* pySim_prog: remove unused import for dec_addr_tlv
2021-05-21 13:41:19 +00:00
Gerrit Code Review 4128981a62 Update notes for submitted changes
* Update README
2021-05-17 20:31:06 +00:00
Gerrit Code Review 76df854219 Update notes for submitted changes
* Add codecs for EF_SPN and GSM strings via construct
2021-05-13 17:56:36 +00:00
Gerrit Code Review c2df6b56e5 Update notes for submitted changes
* ts_51_011: fix encoder of EF_SPN:
2021-05-07 21:52:30 +00:00
Gerrit Code Review b332bc081b Update notes for submitted changes
* ts_102_221: add missing TLV key '9B'/'target_ef' for sysmoUSIM-SJS1
* ModemATCommandLink: improve response time for "+CME ERROR"
* ModemATCommandLink: add/adjust some logging
2021-05-07 21:49:54 +00:00
Gerrit Code Review a1403d09cb Update notes for submitted changes
* ModemATCommandLink: return lower case hexstring
2021-05-06 16:19:12 +00:00
Gerrit Code Review 87647b6982 Update notes for submitted changes
* pySim-read: fix wrong comment
2021-05-05 13:02:59 +00:00
Gerrit Code Review e73fdf6847 Update notes for submitted changes
* docs/shell.rst: Document verify_adm and tree commands
* transport: Mark more methods as abstractmethod
* shell: Add 'reset' command to reset the card
* BER-TLV EF support (command, filesystem, shell)
* ts_31_103: Use EF_ARR decoder from TS 102 221
2021-05-04 14:22:56 +00:00
Gerrit Code Review 0f05c91e3e Update notes for submitted changes
* Implement EF.ARR (Access Rule Reference) decoding
* utils: Introduce CommandSet abstraction
2021-05-04 11:50:20 +00:00
Gerrit Code Review 395a8fed5a Update notes for submitted changes
* utils: Introduce DataObject representation
2021-05-04 11:26:36 +00:00
Gerrit Code Review 65d1be4a49 Update notes for submitted changes
* utils: specify type of parameter name in enc_spn
2021-05-03 15:22:12 +00:00
Gerrit Code Review 6fbb292faf Update notes for submitted changes
* ts_51_011, utils: fix Access Technology Identifier coding
2021-05-03 15:20:29 +00:00