Good evening.
I would like to ask some questions about osmo-sim-auth. First of all i have installed it and i am capable of doing 2g authentications with the parameters -r -s
However i face some problems with the 3g authentication. I have checked my cards through windows and they are usim.
When i run the command
/./osmo-sim-auth.py -r 00000000000000000000000000000000 -a ec9320c2c2120000c8b7de2a3449f1bd
/i get as response the following/
Traceback (most recent call last): File "./osmo-sim-auth.py", line 114, in <module> handle_usim(options, rand_bin, autn_bin) File "./osmo-sim-auth.py", line 44, in handle_usim if len(ret) == 1: TypeError: object of type 'NoneType' has no len()
/I tried to find where the problem is and i have found that the problem is possibly in the if statement in file USIM.py in line 296 ( /if self.coms()[2][0] in (0x9F, 0x61):/)
i put before that line the following to see the value that is compared in the if /print self.coms()[2][0]
/and i get as response the number 152 which in hex is 98.
I also put a print 'aaaa' below the if statement to see if the print will be executed. Unfortunately the i didn't see the 'aaaa' message on the screen.
Do you know what should i do or where to search to fix this problem?
Thanks.
sorry. the if that might have the problem (/if self.coms()[2][0] in (0x9F, 0x61):/) is at line 275 and not at 296
On 11/16/2012 01:08 PM, Stefanos Malliaros wrote:
Good evening.
I would like to ask some questions about osmo-sim-auth. First of all i have installed it and i am capable of doing 2g authentications with the parameters -r -s
However i face some problems with the 3g authentication. I have checked my cards through windows and they are usim.
When i run the command
/./osmo-sim-auth.py -r 00000000000000000000000000000000 -a ec9320c2c2120000c8b7de2a3449f1bd
/i get as response the following/
Traceback (most recent call last): File "./osmo-sim-auth.py", line 114, in <module> handle_usim(options, rand_bin, autn_bin) File "./osmo-sim-auth.py", line 44, in handle_usim if len(ret) == 1: TypeError: object of type 'NoneType' has no len()
/I tried to find where the problem is and i have found that the problem is possibly in the if statement in file USIM.py in line 296 ( /if self.coms()[2][0] in (0x9F, 0x61):/)
i put before that line the following to see the value that is compared in the if /print self.coms()[2][0]
/and i get as response the number 152 which in hex is 98.
I also put a print 'aaaa' below the if statement to see if the print will be executed. Unfortunately the i didn't see the 'aaaa' message on the screen.
Do you know what should i do or where to search to fix this problem?
Thanks.
On Fri, Nov 16, 2012 at 01:08:18PM +0200, Stefanos Malliaros wrote:
/and i get as response the number 152 which in hex is 98.
98xx is a security related parameter. Did you make sure to disable the PIN? osmo-sim-auth does not support cards with active PIN.
Στις 11/18/2012 01:08 PM, ο/η Harald Welte έγραψε:
On Fri, Nov 16, 2012 at 01:08:18PM +0200, Stefanos Malliaros wrote:
/and i get as response the number 152 which in hex is 98.
98xx is a security related parameter. Did you make sure to disable the PIN? osmo-sim-auth does not support cards with active PIN.
yes i have disabled the pin through my mobile phone. before i disabled my pin i wasn't able to do 2G authentication. but when i disabled it i was ok with 2G authentication
should i disable it using another way?
Hello,
actually, code SW 98.XX can be an error related with 3G authentication. See TS 31.102, section 7.3.1.
You can also try the authenticate() directly from python:
from card.USIM import USIM u = USIM() u.authenticate(RAND=[1,2,3,...], AUTN=[4,5,6,...],ctx='3G')
Then, you can see all the APDU and card's answers in .coms attribute of the USIM:
u.coms
2012/11/18 Stefanos Malliaros stefmalli89@gmail.com:
Στις 11/18/2012 01:08 PM, ο/η Harald Welte έγραψε:
On Fri, Nov 16, 2012 at 01:08:18PM +0200, Stefanos Malliaros wrote:
/and i get as response the number 152 which in hex is 98.
98xx is a security related parameter. Did you make sure to disable the PIN? osmo-sim-auth does not support cards with active PIN.
yes i have disabled the pin through my mobile phone. before i disabled my pin i wasn't able to do 2G authentication. but when i disabled it i was ok with 2G authentication
should i disable it using another way?