Skip to content

montlhery/villefort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Villefort

Generate concatenated SIM card SMS records in the EFSMS format.

Generate

Message HELLO with INBOUND_NOT_READ status, sent from +1 987 654 3210 to +1 012 345 6789 with reference 255 and date/time 1970-12-31 23:59:59.

$ docker run --rm ghcr.io/montlhery/villefort \
> --message=HELLO \
> --recipient=10123456789 \
> --sender=19876543210 \
> --date=1970-12-31T23:59:59 \
> --reference=255 \
> --status=INBOUND_NOT_READ
0307910121436587F9400B919178563412F00000072113329595000C050003FF0101904526F309

Write

Use osmocom/pysim to write SMS records to a physical SIM card.

$ pySim-shell.py --pcsc-device=0
Using PC/SC reader interface
...
Welcome to pySim-shell!
% pySIM-shell (MF)> verify_chv 1234 # SIM primary PIN
CHV verification successful
% pySIM-shell (MF)> select DF.TELECOM
...
% pySIM-shell (MF/DF.TELECOM)> select EF.SMS
...
% pySIM-shell (MF/DF.TELECOM/EF.SMS)> update_record 001 0307910121436587F9400B919178563412F00000072113329595000C050003FF0101904526F309

References