Commit Graph

20 Commits

Author SHA1 Message Date
Vadim Yanitskiy f6a806494c shadysim.py: fix: do not apply redundant 8 * '00' padding
When the application message payload is encrypted with any variant
of DES, the length of the ciphertext has to be a multiple of 8 bytes
- hence if the plaintext length is not a multiple of 8 bytes, the
plaintext needs to be padded.

If the ciphertext is already aligned, the current logic would append
8 redundant padding octets.  The resulting encrypted message should
be considered malformed per standard specs, but sysmoUSIM-SJS1 cards
are liberal in what they accept in this instance thus the bug went
unnoticed.  The newer sysmoISIM-SJA2 cards do not accept such
malformed messages with invalid padding.

This bug was discovered and reported by the Mother Mychaela, see:
https://lists.osmocom.org/pipermail/openbsc/2021-February/013414.html
2021-02-22 22:35:45 +01:00
Vadim Yanitskiy 8ac76661ce shadysim.py: use string multiplication to add padding 2021-02-22 22:25:43 +01:00
Harald Welte caa2a1752e update README to indicate Osmocom modifications of the tool 2017-03-17 22:39:52 +01:00
Harald Welte 85ebb9bc68 update README.md to reflect the modifications for sysmoUSIM-SJS1 (authentication)
while the code in this repo has changed in
68cdcdb88b to support KIC/KID
authentication, the README wasn't updated.
2017-03-15 11:44:11 +01:00
Holger Hans Peter Freyther 51889889e4 shadysim: Make it work with the SMPP mode 2015-12-26 17:27:05 +01:00
Dieter Spaar 68cdcdb88b shadysim: Implement OTA security for sysmoUSIM SJS1 2015-12-26 16:07:56 +01:00
Holger Hans Peter Freyther d08dd0637c Convert line endings to Unix 2015-12-26 08:27:53 +01:00
Duncan Smith c73e85aedb Get and record the name of the subscriber 2014-07-05 17:54:40 -07:00
Duncan Smith 470aa07fad SIM tool for 2014 created 2014-07-05 16:57:29 -07:00
Karl Koscher 9b82732c5b Fix some Makefile bugs and add some Windows support 2013-06-24 13:28:26 -07:00
Karl Koscher 836f614d75 Merge branch 'master' of github.com:Shadytel/sim-tools 2013-06-23 16:20:56 -07:00
Eric Butler 0c501aa7aa Added some info to the README 2012-08-16 09:44:30 -07:00
Karl Koscher aaa9ee74d3 Return error messages on delete 2012-08-07 15:35:36 -07:00
Eric Butler 29173dae8b Fix makefile 2012-08-07 15:30:56 -07:00
Eric Butler febca32896 Added JavaCard stuff. 2012-08-07 15:10:40 -07:00
Karl Koscher 1ea9c1c433 Add phonebook support 2012-08-06 01:53:41 -07:00
Karl Koscher 570266a4e4 Add support to specify TARs 2012-08-06 00:55:18 -07:00
Karl Koscher 4b9ff5f008 Add ability to list applets 2012-07-22 22:48:56 -07:00
Karl Koscher 60b8461d28 Initial commit of the Toorcamp SIM tool 2012-07-21 21:54:37 -07:00
Eric Butler 7b86d6e0a3 Initial commit 2012-06-06 23:13:12 -07:00