aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-08-20Add PIN-ADM argument to the command lineJan Balke2-4/+26
Allow overwriting the default PIN-ADM set in the card implementation.
2015-08-20Allow changing the class byte for pdu messagesJan Balke1-7/+16
2015-08-20Introduce a '--dry-run' option to skip actual card accessHarald Welte1-21/+31
This can be used for example to batch convert from CSV input to HLR output without writing cards.
2015-08-20read_params_csv: Make sure we don't end up in endless loopHarald Welte1-7/+13
as a side effect, the first line is now specified with '-j 0' and not '-j 1'
2015-08-20pySim-prog: Add mode where it can re-generate a card from CSVHarald Welte1-5/+54
Rather than just having the capability of writing to CSV, it now has the capability to (re)write a card based on data from the CSV: ./pySim-prog.py -S csv --read-csv /tmp/sim.csv -i 901701234567890 or in batch mode (from the first line onwards): ./pySim-prog.py -S csv --read-csv /tmp/sim.csv --batch -j 1
2015-08-20split parameter writing for CSV and SQL into separate functionsHarald Welte1-2/+7
2013-12-23cards: sysmocom SysmoSIM-GR2 support added to cardsSylvain Munaut1-2/+67
Written-by: Kevin Redon Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-07-18pySim-read: MISDN is not mandatorySylvain Munaut1-8/+11
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-07-13Move encoder functions for ICCID, IMSI and PLMN to pySim.utils for consistency.Alexander Chemeris2-28/+28
2013-07-13Add an utility to read data from a SIM card.Alexander Chemeris1-0/+138
2013-07-13utils: Add functions to decode IMSI and ICCID from EF raw data.Alexander Chemeris1-0/+17
2013-07-02Implement setting of EF.ACC file in GrcardSim and _MagicSimBaseAlexander Chemeris2-2/+24
From: Alexander Chemeris <Alexander.Chemeris@gmail.com> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-07-02cards: Fix spacing according to PEPSylvain Munaut1-0/+3
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-07-02cards: Fix comment positionSylvain Munaut1-2/+2
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-03-22usim/opc: Derive OPC from KI and OPHolger Hans Peter Freyther1-1/+18
2012-03-22usim/opc: Add support to write completely random OPCHarald Welte2-3/+18
Allow to set the OPC, write it out to the state, generate it randomly.
2012-03-22sysmoUSIM-GR1: Add basic (hacky) support for the sysmoUSIM-GR1Holger Hans Peter Freyther1-1/+31
Right now we are only to program the KI, OPC, ICCID and IMSI. This is done in a direct way and through the card abstraction.
2011-12-10cards: SMSP is left padded not right paddedSylvain Munaut1-2/+2
I confused left & right, silly me ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-10pySim-prog: Fix SMSC 'number type' field to 0x81Sylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-08Fix computation of SMSP from a SMSC numberSylvain Munaut2-8/+31
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-08Whitespace fixesSylvain Munaut1-2/+2
2011-12-08Add sysmoSIM-GR1 as alias to grcardsimHarald Welte1-1/+10
2011-12-08correctly compute the ICCID (19 digits, including luhn checksum)Harald Welte2-5/+12
2011-11-22pySim-prog.py: pyflakes doesn't find Importerror..Holger Hans Peter Freyther1-1/+1
Importerror -> ImportError, spotted by pyflakes.
2011-07-27README: Mention the necessary wait_for_cardHolger Hans Peter Freyther1-0/+2
2011-03-22cards: Add support for grcard.cn (Green Card) SIM cardsHarald Welte1-2/+58
This does not have auto-detection (yet), so you have to explicitly specify "-t grcardsim" on the command line
2011-03-22commands: Check SW for UPDATE BIN / UPDATE REC / VERIFY CHVHarald Welte1-3/+3
2010-12-23commands: Fix bug in verify_chv.Sylvain Munaut1-1/+3
Didn't get adapted properly to support several transports ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-23pySim-prog: Fix insertion of Ki in HLR. Need to escape like DBI does itSylvain Munaut1-1/+34
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-23pySim-prog: Fix crash when using manuam imsi/iccid/kcSylvain Munaut1-1/+2
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-23pySim-prog: Check that batch mode is used with auto parametersSylvain Munaut1-0/+4
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-09pySim-prog: Change logic to support batch programmingSylvain Munaut1-29/+129
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-09transport: Change transport api to allow for wait_for_card/connect/disconnectSylvain Munaut4-9/+91
This way, we can re-use the same transport parameters for several cards for a future batch mode Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-08pySim-prog: Fix pcsc device selection and link creationSylvain Munaut1-2/+2
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-08transport/pcsc: Remove obsolete/debug codeSylvain Munaut1-6/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-08pySim-prog: Add options to save generated parameters to CVS or OpenBSC HLRSylvain Munaut1-0/+51
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-08pySim-prog: Show default for mnc in help modeSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-08pySim-prog: Group option for serial (dev & baud) togetherSylvain Munaut1-4/+4
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-07transport: Put common methods in LinkBase classSylvain Munaut3-75/+75
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-07Split all things into a more "library-like" packageSylvain Munaut11-935/+1046
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-06Add a internal h2i purely for symmetry :)Sylvain Munaut1-2/+4
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-06Add command to submit the CHV (pin code)Sylvain Munaut1-0/+5
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-23pySim: Add support for PC/SC readersHarald Welte1-33/+139
Support for PC/SC can be used by simply specifying the '-p 0' option at the command line (indicating PC/SC reader 0, i.e. the first)
2009-12-27Fix format for 'SuperSim'Sylvain Munaut1-12/+22
The Ki is at the very start for that card and not in a special EF Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-27Reset the card after formatting and auto-detectSylvain Munaut1-0/+5
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-27Add README, COPYING, .gitignorSylvain Munaut3-0/+372
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-27Initial importSylvain Munaut1-0/+801
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>