Pysim
Revision as of 09:29, 1 September 2023 by Onnowpurbo (talk | contribs)
Sumber: https://open5gs.org/open5gs/docs/tutorial/01-your-first-lte/
Install pysim
apt -y install python3-construct sudo apt-get install --no-install-recommends \
pcscd libpcsclite-dev \ python3 \ python3-setuptools \ python3-pyscard \ python3-pip
git clone git://git.osmocom.org/pysim cd pysim pip3 install --user -r requirements.txt
Read your SIM card:
./pySim-read.py -p0 or ./pySim-read.py -p1 Using PC/SC reader (dev=0) interface Reading ... ICCID: 8988211000000213010 IMSI: 310789012345301 SMSP: ffffffffffffffffffffffffffffffffffffffffffffffffe1ffffffffffffffffffffffff ...
Program your SIM card like the followings:
./pySim-prog.py -p 0 -n Open5GS -a 62416296 -s 8988211000000213010 -i 310789012345301 -x 310 -y 789 -k 82E9053A1882085FF2C020359938DAE9 -o BFD5771AAF4F6728E9BC6EF2C2533BDB Using PC/SC reader (dev=0) interface Insert card now (or CTRL-C to cancel) Autodetected card type: sysmoUSIM-SJS1 Generated card parameters : > Name : Open5GS > SMSP : e1ffffffffffffffffffffffff0581005155f5ffffffffffff000000 > ICCID : 8988211000000213010 > MCC/MNC : 310/789 > IMSI : 310789012345301 > Ki : 82E9053A1882085FF2C020359938DAE9 > OPC : BFD5771AAF4F6728E9BC6EF2C2533BDB > ACC : None
Programming ... Done !