Commit Graph
100 Commits
Author SHA1 Message Date
Gerrit Code Review 4958e2213d Update notes for submitted changes
* README.md: add missing pycryptodome to dependency list
* setup: add missing pyyaml to setup.py and README.md
2023-05-22 10:36:48 +00:00
Gerrit Code Review 2129c102ba Update notes for submitted changes
* requirements.txt: allow cmd2 versions greater than 1.5
* pySim-shell: fix compatibility problem with cmd2 >= 2.3.0 (bg)
* pySim-shell: fix compatibility problem with cmd2 >= 2.0.0 (include_ipy)
* pySim-shell: fix compatibility problem with cmd2 >= 2.0.0 (Settable)
2023-05-19 09:07:27 +00:00
Gerrit Code Review 33e6cd9777 Update notes for submitted changes
* Add very basic profile for R-UIM (CDMA) cards
* ts_51_011: fix EF_ServiceTable: use self for static method
2023-05-10 00:14:13 +00:00
Gerrit Code Review 98361659db Update notes for submitted changes
* setup.py: add missing pySim-trace.py' to scripts[]
2023-05-05 10:51:15 +00:00
Gerrit Code Review 080d5627fb Update notes for submitted changes
* filesystem: define more convenient codec for EF.ACC
2023-04-20 15:06:43 +00:00
Gerrit Code Review dae919bf0e Update notes for submitted changes
* pySim-prog.py: fix SyntaxWarning: using is with a literal
2023-04-14 11:14:27 +00:00
Gerrit Code Review 9be3754794 Update notes for submitted changes
* pySim-shell: add cardinfo command
2023-04-06 10:14:29 +00:00
Gerrit Code Review 73150532b7 Update notes for submitted changes
* pySim-shell.py: add a command for RUN GSM ALGORITHM
* SimCardCommands.run_gsm(): use send_apdu_checksw()
* fix SimCardCommands.run_gsm(): always use CLA=0xa0
2023-03-22 09:57:32 +00:00
Gerrit Code Review 93e2b26672 Update notes for submitted changes
* gitignore: add manuals related files
* docs/Makefile: don't forward shrink to sphinx
2023-03-20 12:49:54 +00:00
Gerrit Code Review 80c7cfa0a1 Update notes for submitted changes
* ts_102_222: Implement support for RESIZE FILE for an EF
2023-03-09 09:49:40 +00:00
Gerrit Code Review cb5ff1310d Update notes for submitted changes
* docs: change upload path for html docs
2023-03-08 11:41:44 +00:00
Gerrit Code Review 80437bd03a Update notes for submitted changes
* docs: Document the file-specific commands for ADF.USIM/EF.EST
* 31.102: EF.EST enables/disables services; name commands accordingly
* docs: Add reference for various commands
2023-02-27 13:37:01 +00:00
Gerrit Code Review bbdbe9eee9 Update notes for submitted changes
* cards: sysmo-isim-sja2: make sure an ADF is present in EF.DIR before selecting it
2023-02-11 09:14:18 +00:00
Gerrit Code Review b1a7bae9c9 Update notes for submitted changes
* filesystem: add unit tests for encoder/decoder methods
2023-02-01 18:46:44 +00:00
Gerrit Code Review 813f2a3edb Update notes for submitted changes
* ts_51_011: Fix decoding/encoding of EF_LOCIGPRS
* Assume first record number if caller specifies none
* ts_31_102: Fix several bugs in EF_ECC encoder
* ts_51_011: EF_SMSP: Use integer division in ValidityPeriodAdapter
2023-01-31 20:29:19 +00:00
Gerrit Code Review a7a7a71f75 Update notes for submitted changes
* gsm_r: EF_IC: Network String Table Index is 16bit, not 8bit
2023-01-31 16:00:24 +00:00
Gerrit Code Review 063023cf1b Update notes for submitted changes
* ts_51_011: Improve decoding of SELECT response for classic SIM
* ts_51_011: Support EF.LND
* ts_51_011, ts_31_102: point to proper EF_EXTn file
2023-01-29 18:22:09 +00:00
Gerrit Code Review c81f5d3d69 Update notes for submitted changes
* ts_51_011: Implement Extended BCD Coding
2023-01-29 18:21:45 +00:00
Gerrit Code Review bc623cc330 Update notes for submitted changes
* ts_51_011: Support EF.SDN
* ts_51_011: Fix bit-order in EF.VGCSS and EF.VBSS
* gsm_r: Fix byte/nibble ordering of predefined_value1
* gsm_r: EF_Predefined: Decode first record different from others
2023-01-28 16:31:36 +00:00
Gerrit Code Review 88d1a87949 Update notes for submitted changes
* Prepare for decoding/encoding records differently based on record number
2023-01-27 19:49:37 +00:00
Gerrit Code Review 44333e8849 Update notes for submitted changes
* gsm_r: Fix decoding of EF.FN
2023-01-24 20:00:38 +00:00
Gerrit Code Review 1cbf9a38ea Update notes for submitted changes
* gsm_r: Fix typo (it's EF.FN, not EF.EN)
2023-01-24 19:14:34 +00:00
Gerrit Code Review 71f29bb3ee Update notes for submitted changes
* pySim-trace: Also consider SW 91xx as successful
* pySim-trace: Fix missing MANAGE CHANNEL decode
* pySim-trace: Add support for reading GSMTAP from pcap files
2023-01-24 13:08:29 +00:00
Gerrit Code Review 27ccd9d6ea Update notes for submitted changes
* cards: also program EF.AD under ADF.USIM
2023-01-23 10:51:40 +00:00
Gerrit Code Review 5894b6be24 Update notes for submitted changes
* cards: fix typo
2023-01-03 13:03:59 +00:00
Gerrit Code Review 8ea662fbd0 Update notes for submitted changes
* pySim-prog: add python docstring for read_params_csv
2022-12-23 11:15:47 +00:00
Gerrit Code Review c8751da6cb Update notes for submitted changes
* sysmocom_sja2: simplify and fix op/opc decoder/encoder
2022-12-02 16:27:39 +00:00
Gerrit Code Review 717e4f14ff Update notes for submitted changes
* OTA: Adjust IV length for AES
2022-11-25 14:27:27 +00:00
Gerrit Code Review 78875ad225 Update notes for submitted changes
* contrib/jenkins.sh: split test/pylint/docs
2022-11-07 08:16:13 +00:00
Gerrit Code Review 4e36f18c1f Update notes for submitted changes
* docs: allow overriding OSMO_GSM_MANUALS_DIR
2022-10-24 11:29:13 +00:00
Gerrit Code Review 2fa27c0e83 Update notes for submitted changes
* Revert "contrib/jenkins.sh: pylint v2.15 is unstable, pin v2.14.5"
2022-09-14 05:00:33 +00:00
Gerrit Code Review 0b23ec5b85 Update notes for submitted changes
* Add new pySim.ota library, implement SIM OTA crypto
2022-09-08 13:55:34 +00:00
Gerrit Code Review 821f2a9963 Update notes for submitted changes
* README.md: update installation instructions for Debian
2022-09-08 08:23:07 +00:00
Gerrit Code Review f6655cae54 Update notes for submitted changes
* README.md: update git URLs (git -> https; gitea)
* README.md: list recent dependencies from requirements.txt
* README.md: fix module name: s/serial/pyserial/
* README.md,requirements.txt: add missing construct version info
* Bump minimum required construct version to v2.9.51
2022-09-05 17:15:34 +00:00
Gerrit Code Review b3e40cbaa7 Update notes for submitted changes
* construct: use Python's API for int<->bytes conversion
* contrib/jenkins.sh: install dependencies from requirements.txt
* contrib/jenkins.sh: execute this script with -x and -e
2022-09-05 16:42:43 +00:00
Gerrit Code Review 155f0fa602 Update notes for submitted changes
* contrib/jenkins.sh: speed up pylint by running multiple processes
* contrib/jenkins.sh: pylint v2.15 is unstable, pin v2.14.5
2022-09-05 11:27:50 +00:00
Gerrit Code Review 9ac9ca96e1 Update notes for submitted changes
* proactive: Send a Terminal Response automatically after a Fetch
* proactive: Avoid clobbering the output of the command that triggered the FETCH
2022-08-21 13:16:24 +00:00
Gerrit Code Review e1b096c55d Update notes for submitted changes
* tlv: Use self._compute_tag() method rather than direct self.tag
2022-08-07 14:59:50 +00:00
Gerrit Code Review f48fd0bdf9 Update notes for submitted changes
* apdu/ts_102_221: SELECT: allow select of SELF
* apdu/ts_102_221: SELECT: allow select of parent/ancestor DFs
* filesystem: We can select not just immediate parent DF but all ancestors
2022-07-26 06:11:44 +00:00
Gerrit Code Review 77aa0f8609 Update notes for submitted changes
* apdu/ts_102_221: Fix SELECT of 3f00
* apdu/ts_102_221: Implement SELECT case "df_ef_or_mf_by_file_id"
* filesystem.py: Make CardDF.get_selectables() respect the flags
2022-07-25 12:21:59 +00:00
Gerrit Code Review 686ba703c4 Update notes for submitted changes
* pySim-trace: Don't print argparse object at start-up
* pySim-trace: Fix --no-suppress-{select.status} command line arguments
* pySim-trace: Support SELECT with empty response body
2022-07-25 12:20:47 +00:00
Gerrit Code Review 7f612c8cb9 Update notes for submitted changes
* sim-rest-server: Report meaningful error message if PIN is blocked
2022-07-23 12:29:00 +00:00
Gerrit Code Review ce6ef85873 Update notes for submitted changes
* sim-rest-server: Render error messages as JSON
2022-07-23 12:28:54 +00:00
Gerrit Code Review 2227906def Update notes for submitted changes
* pySim-shell: Add a "version" command to print the pySim package version
2022-07-23 12:28:37 +00:00
Gerrit Code Review 0f531bf554 Update notes for submitted changes
* Introduce APDU/TPDU trace decoder
* sysmocom_sja2: Prevent KeyError/None exception on encode
2022-07-23 10:37:48 +00:00
Gerrit Code Review 1f4fa3956f Update notes for submitted changes
* ts_31_102: Fix EF_EPSLOCI argument ordering
2022-07-22 10:40:01 +00:00
Gerrit Code Review 25a81d76f4 Update notes for submitted changes
* Never use Bytes without any 'Adapter'
* EF.AD: Avoid NotImplementedErrror regarding network names
* tlv: Make NotImplementedError more verbose
* README: Mention the manual can also be built from the source
2022-07-21 13:41:57 +00:00
Gerrit Code Review 8ede4d5e8c Update notes for submitted changes
* pySim/ts_102_222.py: remove ununsed imports from 'cmd2'
2022-07-14 17:14:50 +00:00
Gerrit Code Review dd7855dbd8 Update notes for submitted changes
* pySim-shell.py: remove unused imports of 'bg' from 'cmd2'
2022-07-14 17:14:41 +00:00
Gerrit Code Review 45ad922d5d Update notes for submitted changes
* sim-rest-server: Set Content-Type: application/json on response
2022-07-08 20:24:07 +00:00
Gerrit Code Review f91671e6b8 Update notes for submitted changes
* scripts/deactivate-5g.script: Also disable service 126
2022-07-08 20:23:59 +00:00
Gerrit Code Review caf5ac6019 Update notes for submitted changes
* Py2 -> Py3: do not inherit classes from object
2022-07-07 09:53:49 +00:00
Gerrit Code Review 6721b8fc6a Update notes for submitted changes
* cards: populate ADM1 key reference member
2022-06-21 10:08:51 +00:00
Gerrit Code Review f4e7075d66 Update notes for submitted changes
* pySim-shell: set default ADM key reference
2022-06-14 19:57:39 +00:00
Gerrit Code Review 4f39ef4186 Update notes for submitted changes
* ts_102_221: The BTLV IEs FILE SIZE and TOTAL FILE SIZE have a min length
2022-06-11 06:04:39 +00:00
Gerrit Code Review 0d16d57f45 Update notes for submitted changes
* commands: add ".." notation to expand hexstrings
2022-06-10 14:26:05 +00:00
Gerrit Code Review 9e94e59795 Update notes for submitted changes
* pySim-shell: catch exceptions from walk() while exporting
2022-06-03 08:25:38 +00:00
Gerrit Code Review 60482720b9 Update notes for submitted changes
* pySim-shell: extend walk() so that we can also have an action of ADF or DF
2022-06-03 08:17:57 +00:00
Gerrit Code Review 0eefb58519 Update notes for submitted changes
* pySim-shell: match SW in apdu command
2022-06-03 08:17:00 +00:00
Gerrit Code Review e8a4b16b19 Update notes for submitted changes
* pySim-shell: make APDU command available on the lowest level
2022-06-03 08:07:42 +00:00
Gerrit Code Review a16658bb8f Update notes for submitted changes
* ts_102_221: fix SFI generation
2022-06-02 08:43:54 +00:00
Gerrit Code Review e94d4334f8 Update notes for submitted changes
* filesystem: also return the encoded FCP from probe_file
2022-06-02 08:42:27 +00:00
Gerrit Code Review a576cb13c8 Update notes for submitted changes
* pySim-shell: more generic export options
2022-05-31 10:22:04 +00:00
Gerrit Code Review ccd89f4848 Update notes for submitted changes
* pySim-shell: explain why we insist on a DF or ADF
2022-05-19 08:30:14 +00:00
Gerrit Code Review b6218276cb Update notes for submitted changes
* ts_102_222: Set number of records when creating linear files
2022-05-06 11:04:51 +00:00
Gerrit Code Review 6b5529b7e1 Update notes for submitted changes
* transport/pcsc: throw ReaderError with a message
2022-04-25 17:01:35 +00:00
Gerrit Code Review 70bd79511c Update notes for submitted changes
* SimCard.reset(): fix SyntaxWarning: 'is' with a literal
2022-04-25 14:59:16 +00:00
Gerrit Code Review 4d1680d18e Update notes for submitted changes
* ts_102_221: Add encode/write support of EF.ARR records
* utils: Add DataObjectSequence.encode_multi()
* utils: Fix bugs in DataObject encoders
2022-04-05 13:00:19 +00:00
Gerrit Code Review cbbe297eeb Update notes for submitted changes
* ts_31_103: Correct file-id of EF.DOMAIN in ADF.ISIM
2022-03-27 11:47:59 +00:00
Gerrit Code Review adeec2345d Update notes for submitted changes
* ts_31_102: Avoid pylint false positive
2022-03-27 10:43:27 +00:00
Gerrit Code Review 54cb71cf11 Update notes for submitted changes
* pySim-shell: Add 'decode_hex' command for transparent + linear EF
2022-03-01 16:48:22 +00:00
Gerrit Code Review c924a9f405 Update notes for submitted changes
* Initial support for GlobalPlatform
2022-03-01 16:32:15 +00:00
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