From ba486b61ad9d5be2b93e8a75ce34c3a68e69f56b Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Mon, 18 May 2015 17:16:26 +0200 Subject: [PATCH] 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. --- usb_application/simtrace.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usb_application/simtrace.py b/usb_application/simtrace.py index 596d7fcc..7c44f358 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)