This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.
Harald Welte laforge at gnumonks.orgHi Marco,
On Wed, Mar 30, 2016 at 11:26:06PM +0200, Marco Heumann wrote:
> a student college and me are using the osmo-sim-auth tool for a student
> project. We have valid data for our SIM card since it's a special
> ordered test SIM card.
are you aware that test sim cards sometimes use different algorithms
(XOR instead of MILENAGE) and even might have the sequence number (SQN)
handling turned off?
> In 2G mode we get the correct RES value, but in 3G mode we always get
> only an AUTS value. We calculated the SQN value from the AUTS to
> verify that we have the correct SQN value, but still we only get AUTS
> as return.
What is your expectation? What do you expect in addition to the AUTS?
Have you actually bothered to look at the code of osmo-sim-auth.py? In
UMTS AKA case, there is only a single print line:
»·······ret = u.authenticate(rand_bin, autn_bin, ctx='3G')
»·······if len(ret) == 1:
»·······»·······print "AUTS:\t%s" % b2a_hex(byteToString(ret[0]))
»·······else:
»·······»·······print "RES:\t%s" % b2a_hex(byteToString(ret[0]))
»·······»·······print "CK:\t%s" % b2a_hex(byteToString(ret[1]))
»·······»·······print "IK:\t%s" % b2a_hex(byteToString(ret[2]))
»·······»·······if len(ret) == 4:
»·······»·······»·······print "Kc:\t%s" % b2a_hex(byteToString(ret[3]))
maybe you simply want to add the print-out of what you wnat to see printed?
--
- Harald Welte <laforge at gnumonks.org> http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)