Commit Graph
100 Commits
Author SHA1 Message Date
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
Gerrit Code Review ee5b4c37d8 Update notes for submitted changes
* utils: fix dec_xplmn_w_act() and format_xplmn_w_act()
2021-05-03 15:08:27 +00:00
Gerrit Code Review 70c366db3b Update notes for submitted changes
* utils: fix mcc/mnc encoding in dec_plmn (EF_PLMNsel)
2021-05-03 15:07:50 +00:00
Gerrit Code Review fdec7fbc30 Update notes for submitted changes
* utils: specify paremeters of enc_plmn() as Hexstr
2021-05-03 14:19:41 +00:00
Gerrit Code Review e85966eb63 Update notes for submitted changes
* ModemATCommandLink: fix AttributeError exception in __del__()
2021-05-03 14:13:14 +00:00
Gerrit Code Review 4934813095 Update notes for submitted changes
* Speed up AT command interface (~130 times faster)
2021-05-03 14:11:50 +00:00
Gerrit Code Review bb0b806bd7 Update notes for submitted changes
* contrib/jenkins.sh: run pylint to find potential errors
2021-05-02 20:22:49 +00:00
Gerrit Code Review 64815ae768 Update notes for submitted changes
* [pylint] Fix referencing undefined variable 'shutil'
* [pylint] Declare abstract LinkBase._send_apdu_raw() method as such
* [pylint] Fix float vs integer division in cards.py
* [pylint] Fix reference to undefined variable 'in_hex'
* [pylint] Mark abstract MagicSimBase class as such
* [pylint] Fix calling non-existing iteritems() of dict
* [pylint] Declare some fields in _MagicSimBase class
* [pylint] Mark abstract CardKeyProvider.get() method as such
* [pylint] fix non-existing 'res' in EF_CNL._encode_record_hex()
2021-05-02 20:22:15 +00:00
Gerrit Code Review 61f51bfb1b Update notes for submitted changes
* transport/AT: Make sure PDU has upper case hex digits
2021-05-02 20:11:32 +00:00
Gerrit Code Review 0f6408930e Update notes for submitted changes
* ts_51_011: fix encoding of EF.MSISDN
2021-04-30 16:09:00 +00:00
Gerrit Code Review 25b8fffaf1 Update notes for submitted changes
* setup: set minimum required versions for contruct and cmd2
2021-04-30 13:52:24 +00:00
Gerrit Code Review a7d4915096 Update notes for submitted changes
* filesystem.py: Introduce place-holder for BER-TLV files
* ts_31_102, ts_31_103: Add EF.FromPreferred
* ts_31_103: Add Rel 16.6 enhancements (MuDMiDConfigData)
* ts_31_103: Use EF_SMS, EF_SMSS, EF_SMSR, EF_SMSP from ts_51_011
* ts_31_102: Define DF_WLAN, DF_ProSe and DF_HNB with their EFs
* ts_31_102: Extend DF_5GS to 3GPP 31.102 R16.6
2021-04-24 10:08:47 +00:00
Gerrit Code Review 836e4c1bb7 Update notes for submitted changes
* utils: fix encoding of EF.MSISDN
2021-04-24 08:43:25 +00:00
Gerrit Code Review 45c63c3228 Update notes for submitted changes
* filsystem.py: Add more information to exceptions
* pySim-read: Migrate over to use shared argparse from transport
* Move reader related argument parser to transport module
2021-04-22 09:27:26 +00:00
Gerrit Code Review ae2467e941 Update notes for submitted changes
* filesystem: fix wrong helpstring for update_record_decoded
* filesystem: fix wrong comment
* pySim-shell: separate export summary with a headline
2021-04-21 16:39:04 +00:00
Gerrit Code Review eabca55275 Update notes for submitted changes
* pysim-testdata/sysmoISIM-SJA2: change card in test rig
2021-04-21 10:35:59 +00:00
Gerrit Code Review aa8205965a Update notes for submitted changes
* setup: add (nested) library pySim.transport
2021-04-18 06:46:05 +00:00
Gerrit Code Review 4953009465 Update notes for submitted changes
* Use construct for EF_AD in pySim-{shell, prog, read}.py, cards.py
2021-04-13 11:27:37 +00:00
Gerrit Code Review 12185c3b19 Update notes for submitted changes
* contrib/jenkins.sh: Build and publish PDF manual
2021-04-12 08:08:21 +00:00
Gerrit Code Review f725c90f7b Update notes for submitted changes
* WIP: Add option to set UE operation mode in EF_AD (Administrative Data)
2021-04-11 09:35:36 +00:00
Gerrit Code Review fefde7ddfc Update notes for submitted changes
* README.md: Mention user manual
* README.md: We have switched to gerrit for review
* README.md: Update dependencies
2021-04-11 09:34:06 +00:00
Gerrit Code Review 0877808ea2 Update notes for submitted changes
* setup.py: add missing comma in list of dependencies
* pySim-shell: Use poutput_json() whenever applicable
* extend JSONEncoder to serialze 'bytes' style objects as hex strings
* shell: Add 'apdu_trace' settable parameter for hex-dumping APDUs
* transport: Pass arbitrary kwargs to base-class constructor
* transport: Make all calls go through base class send_apdu_raw()
2021-04-10 22:13:57 +00:00
Gerrit Code Review d8705a27cd Update notes for submitted changes
* shell: add edit_{record,binary}_decoded shell commands
* pySim/filesystem: Fix more Python 3.5 compatibility issues
* Wavemobile: adjust test expectations about binary EF.AD content
2021-04-10 22:12:55 +00:00
Gerrit Code Review 59ff582f3f Update notes for submitted changes
* pySim/filesystem.py: fix compatibility with Python 3.5
2021-04-10 09:48:43 +00:00
Gerrit Code Review da39ba7b86 Update notes for submitted changes
* pySim-shell: tree/export: catch errors during DF selection
2021-04-10 09:39:34 +00:00
Gerrit Code Review a02ccdd8bf Update notes for submitted changes
* pySim-shell: be sure that startup script file exists
2021-04-09 16:13:10 +00:00
Gerrit Code Review 10324416df Update notes for submitted changes
* tests: remove .example files for simcard tests
2021-04-08 15:37:32 +00:00
Gerrit Code Review fd10d50f78 Update notes for submitted changes
* pySim-shell: fix wrong reference to iccid.
2021-04-08 15:37:08 +00:00
Gerrit Code Review a37eb4fd17 Update notes for submitted changes
* shell: New 'read_records' and 'read_records_decoded' commands
* pySim-shell: JSONpath support for updating files/records
2021-04-07 16:45:12 +00:00
Gerrit Code Review be4897dee7 Update notes for submitted changes
* Use zero padding for EF['ACC'] field
2021-04-07 16:23:11 +00:00
Gerrit Code Review 2018e4424b Update notes for submitted changes
* ts_102_221.py: fix fixup_fcp_proprietary_tlv_map()
2021-04-07 16:21:52 +00:00
Gerrit Code Review e29481ee0d Update notes for submitted changes
* SysmoISIM-SJA2: Add option to set Service Provider Name (SPN)
2021-04-07 16:21:15 +00:00
Gerrit Code Review 9fdb0efdde Update notes for submitted changes
* utils.py: Add missing dec_plmn function.
2021-04-06 22:53:24 +00:00
Gerrit Code Review ea61e12372 Update notes for submitted changes
* pySim/filesystem: Remove left-over debug print statements
2021-04-06 22:53:13 +00:00
Gerrit Code Review add7d78e7f Update notes for submitted changes
* docs: Documentation for classic pySim-{prog,read} tools
* docs/shell.rst: Auto-generate shell command reference
* pySim-shell: Add settable parameter on JSON pretty-printing
* ts_51_011: Full encoder/decoder for EF.AD
* pySim-shell: Add '--oneline' to read_{binary,record}_decoded
2021-04-06 19:33:14 +00:00
Gerrit Code Review 802b4466d2 Update notes for submitted changes
* Introduce setuptools support
* transport: Pass status word interpreter to exception handler
* docs: Initial documentation for pySim-shell
* shell: Move dir,tree,export from ISO7816 to pySim commands
* utils.py: Add more type annotations
* Move init_reader() from utils.py to transport/__init__.py
* card_key_provider: Documentation with sphinx / autodoc
* rename card_data to card_key_provider.
* Add type annotations and more documentation to card_data.py
2021-04-06 16:03:29 +00:00
Gerrit Code Review 2134c24c9f Update notes for submitted changes
* filesystem.py: Fix type annotation of read_binary_dec()
2021-04-04 07:53:42 +00:00
Gerrit Code Review 7074cd6e2a Update notes for submitted changes
* cosmetic: fix typo in comment
2021-04-03 20:33:31 +00:00
Gerrit Code Review 1725dcba56 Update notes for submitted changes
* docs: Update copyright statement
2021-04-03 20:32:50 +00:00
Gerrit Code Review ebd18ced08 Update notes for submitted changes
* jenkins.sh: Build documentation as part of build verification
2021-04-03 20:07:02 +00:00
Gerrit Code Review 6b55e39bd2 Update notes for submitted changes
* filesystem: Fix interpret_sw() fall-through
* 51.011: Define some more files within DF_TELECOM
* fix various file definitions
* pySim-shell: Remove UsimCommands
2021-04-02 21:08:37 +00:00
Gerrit Code Review c4abf5a2fe Update notes for submitted changes
* Fix various mistakes around the CardADF <-> CardApplication dualism
* filesystem: fix various issues found by mypy
* filesystem: Avoid GPL header showing up in sphinx autodoc
* Use sphinx for generating documentation
* Add more documentation to the classes/methods
2021-04-02 20:15:45 +00:00
Gerrit Code Review a8df8f3fdb Update notes for submitted changes
* ts_31_102: Fix decode_select_response() for DF.5GS
2021-04-02 19:10:07 +00:00
Gerrit Code Review 55c32a9fa7 Update notes for submitted changes
* pySim-shell: fix and improve file system exporter
2021-04-02 14:44:55 +00:00
Gerrit Code Review d6b43470a6 Update notes for submitted changes
* pySim-shell: prevent inconsitancy when walking through the FS tree
* pySim-shell: complete CHV/PIN management tools
2021-04-02 14:44:46 +00:00
Gerrit Code Review 3d4112e29f Update notes for submitted changes
* pySim-shell: be more specific when finding no ADM-PIN
2021-04-02 14:34:01 +00:00
Gerrit Code Review ea397885d6 Update notes for submitted changes
* commands: conserve write cycles
* pySim-shell: automatic ADM pin from CSV-File
* fileystem: fix ADF selection
* ts_31_102: do not add empty ShellCommands class.
* filesystem: allow selection of arbitrary files
2021-04-02 14:33:23 +00:00
Gerrit Code Review 2ab5e54941 Update notes for submitted changes
* Add decoder/encoder for EF.SUCI_Calc_Info
2021-04-02 14:17:17 +00:00
Gerrit Code Review 66827f42a1 Update notes for submitted changes
* ts_102_221: use keywords to avoid conflicts with positional args
2021-04-01 08:06:25 +00:00
Gerrit Code Review 84bb093910 Update notes for submitted changes
* pySim-shell: use -a / -A commandline option to authenticate
2021-03-30 10:06:30 +00:00
Gerrit Code Review 4f57299e3a Update notes for submitted changes
* filesystem: avoid outputting empty lines when there is no data
2021-03-30 10:06:12 +00:00
Gerrit Code Review 6b34e1e2fe Update notes for submitted changes
* pySim-shell: add command to show file description
2021-03-27 18:37:39 +00:00
Gerrit Code Review 69e1aac967 Update notes for submitted changes
* pySim/filesystem: fix mutable default list/dict arguments
2021-03-27 18:28:43 +00:00
Gerrit Code Review d87ff8f6cb Update notes for submitted changes
* pySim-shell: add filesystem exporter
2021-03-27 18:22:28 +00:00
Gerrit Code Review 0f21f9c6ad Update notes for submitted changes
* filesystem: fix typo in method call app()->append()
2021-03-27 18:16:25 +00:00
Gerrit Code Review 26f2603a65 Update notes for submitted changes
* pysim-shell: select MF on startup to make commands accessible
2021-03-23 19:52:11 +00:00
Gerrit Code Review 1fc4947df8 Update notes for submitted changes
* utils: fix sw_match()
2021-03-23 12:17:23 +00:00
Gerrit Code Review efbd444c26 Update notes for submitted changes
* cards: remove unnecessary execptions.
* commands: better exception string for authentication failures
2021-03-23 11:54:47 +00:00
Gerrit Code Review 07535e5ac5 Update notes for submitted changes
* filesystem: be more strict in method add_file()
2021-03-22 21:31:38 +00:00
Gerrit Code Review 93a725dde5 Update notes for submitted changes
* filesystem: drop __main__ from filesystem.py
2021-03-20 10:50:53 +00:00
Gerrit Code Review a018d44503 Update notes for submitted changes
* filesystem: add comment to inform about checks in add_file()
2021-03-19 17:01:18 +00:00
Gerrit Code Review 68812df096 Update notes for submitted changes
* filesystem: fix exception string (fid != name)
2021-03-19 16:52:12 +00:00
Gerrit Code Review a38dad1581 Update notes for submitted changes
* pySim-shell: add functionality to walk through the fs recursively
2021-03-19 07:13:49 +00:00
Gerrit Code Review 8f9862490d Update notes for submitted changes
* Check in requirements.txt to simplify installing dependencies
* README.md: add notes about the new 'cmd2' dependency
2021-03-12 15:30:52 +00:00
Gerrit Code Review 084152f693 Update notes for submitted changes
* filesystem: be case insensitive when selecting files by fid (HEX)
* utils: add is_hex function to check hex strings
* filesystem: add flags to filter selectables
2021-03-12 07:35:37 +00:00
Gerrit Code Review 00edcb3fdf Update notes for submitted changes
* pySim/exceptions.py: fix referencing an instance member
2021-03-12 07:32:17 +00:00
Gerrit Code Review 05dd8afeb4 Update notes for submitted changes
* contrib/jenkins.sh: enable automatic execution of unit tests
* tests/test_utils.py: update expectations for format_xplmn_w_act()
* pySim/utils.py: fix 3-digit MNC encoding in enc_plmn()
* Revert "utils.py: Fix for parsing MNC"
2021-03-12 07:26:33 +00:00
Gerrit Code Review ebde4f5256 Update notes for submitted changes
* pySim/utils_test.py: prepare this to be executed on Jenkins
* pySim/utils_test.py: use proper shebang for this executable
* Get rid of Python 2 specific compatibility leftovers
2021-03-12 07:25:52 +00:00
Gerrit Code Review 9f8734f2dc Update notes for submitted changes
* ts_51_011: fix bitmask compositing in EF_xPLMNwAcT.enc_act()
2021-03-08 09:17:48 +00:00
Gerrit Code Review 5623c7c7dd Update notes for submitted changes
* Python 2 is deprecated, remove backwards compatibility chunks
2021-03-07 19:36:40 +00:00
Gerrit Code Review 2e1dee1013 Update notes for submitted changes
* transport/pcsc: work around Python 3.5 bug: guard disconnect()
2021-03-07 19:26:08 +00:00
Gerrit Code Review dfa4647f8e Update notes for submitted changes
* pySim/utils.py: Attempt to support pycryptodpme
2021-03-05 20:39:22 +00:00
Gerrit Code Review 99631e0f84 Update notes for submitted changes
* fix TypeError in derive_milenage_opc()
2021-03-05 20:39:12 +00:00
Gerrit Code Review cdc6312553 Update notes for submitted changes
* Add a new pySim-shell program
2021-03-03 07:51:10 +00:00
Gerrit Code Review a71276fd73 Update notes for submitted changes
* start using python3 bytearray for our b2h/h2b types
2021-03-03 07:42:06 +00:00
Gerrit Code Review b86e4d62e5 Update notes for submitted changes
* commands.py: Introduce a real select_file() method
* commands.py: rename select_file() to select_path()
* move SW matching to a generic utility function
2021-03-03 07:38:45 +00:00
Gerrit Code Review 1f6b4bd656 Update notes for submitted changes
* introduce SwMatchError exception
* utils.py: de-couple sanitize_pin_adm from argparse 'opts'
* cards.py: SJS1 + SJA2: Implement + Expose verify_adm() method
2021-03-02 09:21:36 +00:00
Gerrit Code Review 0748208f26 Update notes for submitted changes
* Remove Python shebang from files where it's not needed
2021-03-01 19:36:40 +00:00
Gerrit Code Review 4a66398f46 Update notes for submitted changes
* serial: do not try to close non existing serial connection
* serial: don't crash if the device does not exist
* utils: catch exceptions during reader initalitation
2021-02-25 22:05:56 +00:00
Gerrit Code Review f305efefc9 Update notes for submitted changes
* utils.py: Fix for parsing MNC
2021-02-11 13:46:58 +00:00
Gerrit Code Review 39681a6460 Update notes for submitted changes
* pySim-read.py: Add support for reading USIM+ISIM data from third-party UICC
2021-02-03 08:40:33 +00:00
Gerrit Code Review fefd5b721c Update notes for submitted changes
* Readme.md: update debian deps, add python3-yaml
2021-01-20 19:24:44 +00:00
Gerrit Code Review a2c5a49d42 Update notes for submitted changes
* pySim-read.py: Enable reading of UICC IARI from ISIM
* sysmoISIM-SJA2: Enable programming of EF.ACC
* sysmoISIM-SJA2: Enable programming of EF.MSISDN
* sysmoISIM-SJA2: Add support for programming IMS public user identity
* sysmoISIM-SJA2: Add support for programming IMS private user identity
* pySim-read.py: Enable reading of EF.IMPU from ISIM
* pySim-read.py: Enable reading of EF.IMPI from ISIM
2021-01-05 15:37:08 +00:00
Gerrit Code Review 01d81dcdef Update notes for submitted changes
* Update ISIM IST table as per the 3GPP TS 31.103 specification V15.6.0
* sysmoISIM-SJA2: Add support for programming IPv4 address for PCSCF
* sysmoISIM-SJA2: Add support for programming IPv4 address for Home ePDG Identifier
2021-01-05 14:23:33 +00:00