diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2010-12-07 00:24:32 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2010-12-07 00:24:32 +0100 |
commit | 76504e0a6e7689d374b557e054299281bdb9c951 (patch) | |
tree | 575bdfd043be2ee57d4744ac8a8e7aa77ee43e1c /README | |
parent | be17997e55cb5544d3cc74c981b4d605b9e0a7dc (diff) |
Split all things into a more "library-like" package
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'README')
-rw-r--r-- | README | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -4,12 +4,12 @@ This utility allows to : - one where you specify every parameter manually : -./pySim.py -n 26C3 -c 49 -x 262 -y 42 -i <IMSI> -s <ICCID> +./pySim-prog.py -n 26C3 -c 49 -x 262 -y 42 -i <IMSI> -s <ICCID> - one where they are generated from some minimal set : -./pySim.py -n 26C3 -c 49 -x 262 -y 42 -z <random_string_of_choice> -j <card_num> +./pySim-prog.py -n 26C3 -c 49 -x 262 -y 42 -z <random_string_of_choice> -j <card_num> With <random_string_of_choice> and <card_num>, the soft will generate 'predictable' IMSI and ICCID, so make sure you choose them so as not to @@ -23,9 +23,14 @@ This utility allows to : * Interact with SIMs from a python interactive shell (ipython for eg :) -import pySim -sl = pySim.SerialSimLink(device='/dev/ttyUSB0', baudrate=9600) -print sl.read_binary(['3f00', '7f20', '6f07']) # Print IMSI -print sl.run_gsm('00112233445566778899aabbccddeeff') # Run A3/A8 +from pySim.transport.serial import SerialSimLink +from pySim.commands import SimCardCommands +sl = SerialSimLink(device='/dev/ttyUSB0', baudrate=9600) +sc = SimCardCommands(sl) + # Print IMSI +print sc.read_binary(['3f00', '7f20', '6f07']) + + # Run A3/A8 +print sc.run_gsm('00112233445566778899aabbccddeeff') |