<div dir="ltr">Hi,<div><br></div><div>I'm having a trouble when using pySIM to change the authentication algorithm in a <span style="font-size:12.8px">USIM-SJS1 card. Basically I want disable the 3G </span>authentication on the card, and only use 2G authentication regardless of the network type. Anyway, here's my procedure.</div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">In the beginning, I didn't realize there's a zecke/tmp2 branch. So i modified the the cards.py by myself. I added </span></div><div><span style="font-size:12.8px"><br></span></div><div><pre style="padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:13.3333px"><code>    data, sw = self._scc.update_binary('<span style="font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;font-size:13px;white-space:normal">6F00</span>', '</code><span style="font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;font-size:13px">03</span><span style="font-size:13.3333px;font-family:arial,sans-serif">')</span></pre></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">in the this line  <a href="http://cgit.osmocom.org/pysim/tree/pySim/cards.py?h=master#n461">http://cgit.osmocom.org/pysim/tree/pySim/cards.py?h=master#n461</a></span></div><div><br></div><div><span style="font-size:12.8px">I learned the values '6F00' and '03' from <a href="https://openbsc.osmocom.org/trac/wiki/sysmoUSIM-SJS1">this osmocom webpage</a>. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">One thing to mention that is I also commented out the  </span><span style="color:rgb(0,0,0);font-size:13.3333px">self._scc.verify_chv() and update KI/IMSI statements in above.  Because it always fails in the </span><span style="color:rgb(0,0,0);font-size:13.3333px">self._scc.verify_chv()</span><span style="color:rgb(0,0,0);font-size:13.3333px">  step (apdu response 69xx), though I provided the adm-1 key in the CLI.</span></div><div><span style="color:rgb(0,0,0);font-size:13.3333px"><br></span></div><div><font color="#000000"><span style="font-size:13.3333px">After it's done, unfortunately I found that when use ./pySim-read.py to read SIM again, it fails with apdu response 6b00. Also, the attempt to updating </span></font>authentication algorithm didn't work when test in the phone.</div><div><font color="#000000"><span style="font-size:13.3333px"><br></span></font></div><div><font color="#000000"><span style="font-size:13.3333px">Did I already mess up this SIM card at this point?</span></font></div><div><font color="#000000"><span style="font-size:13.3333px"><br></span></font></div><div><font color="#000000"><span style="font-size:13.3333px">Then, I found there's a zecke/tmp2 branch. Tried it. Still not working either in reading (apdu response 6b00); or writing (still ails in self._scc.verify_chv() with apdu response 6983)</span></font></div><div><font color="#000000"><span style="font-size:13.3333px"><br></span></font></div><div><font color="#000000"><span style="font-size:13.3333px">Please give suggestion on what I should do.</span></font></div><div><font color="#000000"><span style="font-size:13.3333px"><br></span></font></div><div><font color="#000000"><span style="font-size:13.3333px">Thank you.</span></font></div><div><font color="#000000"><span style="font-size:13.3333px"><br></span></font></div><div><span style="font-size:12.8px"><br></span></div></div>