diff options
author | Christina Quast <chrysh.ng+git@gmail.com> | 2015-05-18 17:16:26 +0200 |
---|---|---|
committer | Christina Quast <chrysh.ng+git@gmail.com> | 2015-05-18 17:16:31 +0200 |
commit | ba486b61ad9d5be2b93e8a75ce34c3a68e69f56b (patch) | |
tree | 53d47054c7cec34f4006008f1cb7a0fc606a4ca7 | |
parent | 66224b7e1b67b48b9143e50e3d624c92c4270a15 (diff) |
simtrace.py: remove unused cmd line option
The commands "cmd1", "cmd2", "cmd_poweron", "cmd_poweroff",
"cmd_get_slot_stat", "cmd_get_param" where early test commands,
but have not been used as such in moths.
A programmer, who wants to send commands to the smartcard, should
use the functions of ccid_raw.py (e.g. send_receive_cmd) instead.
-rwxr-xr-x | usb_application/simtrace.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usb_application/simtrace.py b/usb_application/simtrace.py index 596d7fc..7c44f35 100755 --- a/usb_application/simtrace.py +++ b/usb_application/simtrace.py @@ -22,15 +22,14 @@ def find_dev(): # main code def main(): parser = argparse.ArgumentParser() +# FIXME: config names instead of numbers parser.add_argument("-C", "--conf", type=int, choices=[1, 2, 3, 4], help="Set USB config") parser.add_argument("-b", "--read_bin", help="read ICCID, IMSI, etc.", action='store_true') - parser.add_argument("-c", "--cmd", help="cmds to send to sim card (Not supported yet)", - choices=["cmd1", "cmd2", "cmd_poweron", "cmd_poweroff", "cmd_get_slot_stat", "cmd_get_param"]) parser.add_argument("-s", "--sniff", help="Sniff communication!", action='store_true') parser.add_argument("-S", "--select_file", help="Transmit SELECT cmd!", action='store_true') parser.add_argument("-p", "--phone", help="Emulates simcard", action='store_true') parser.add_argument("-m", "--mitm", help="Intercept communication (MITM)", action='store_true') - + args = parser.parse_args() print("args: ", args) |